"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingCartEnableNotes-admin"],{XyRh:function(e,t,n){n.d(t,{Z:function(){return c}});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,s=wp.components,c=s.ToggleControl,r=s.Notice;return React.createElement(React.Fragment,null,React.createElement(c,{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))})),s={name:"1cirfju-noticeCSS",styles:"&&{margin-left:0!important;margin-right:0!important;margin-bottom:3em!important;};label:noticeCSS;"},c=wp.element.memo((function(e){var t=e.settingName,n=void 0!==t&&t,c=e.label,r=void 0!==c&&c,m=e.help,p=void 0!==m&&m,u=e.note,g=void 0!==u&&u,h=e.alsoChange,C=void 0!==h&&h,b=e.disable,d=void 0!==b&&b,S=React.useContext,f=wp.components.Disabled,v=S(l.Z),w=(0,a.Z)(v,2),N=w[0],E=w[1],y=s;function R(){E({type:"UPDATE_SETTING",payload:{key:n,value:!N[n]}}),C&&E({type:"UPDATE_SETTING",payload:{key:C,value:!N[C]}})}return(0,o.tZ)(React.Fragment,null,d?(0,o.tZ)(f,null,(0,o.tZ)(i,{settingName:N[n],onChange:R,label:r,help:p,note:g,noticeCSS:y})):(0,o.tZ)(i,{settingName:N[n],onChange:R,label:r,help:p,note:g,noticeCSS:y}))}))},"1aCz":function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return React.createElement(a.Z,{label:wp.i18n.__("Enable cart notes","shopwp"),settingName:"enableCartNotes"})}}}]);