"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingEnableDiscountCodes-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,p=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(p,{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,p=void 0!==c&&c,m=e.help,r=void 0!==m&&m,u=e.note,h=void 0!==u&&u,d=e.alsoChange,g=void 0!==d&&d,b=e.disable,C=void 0!==b&&b,w=React.useContext,S=wp.components.Disabled,f=w(l.Z),v=(0,a.Z)(f,2),E=v[0],Z=v[1],y=s;function N(){Z({type:"UPDATE_SETTING",payload:{key:n,value:!E[n]}}),g&&Z({type:"UPDATE_SETTING",payload:{key:g,value:!E[g]}})}return(0,o.tZ)(React.Fragment,null,C?(0,o.tZ)(S,null,(0,o.tZ)(i,{settingName:E[n],onChange:N,label:p,help:r,note:h,noticeCSS:y})):(0,o.tZ)(i,{settingName:E[n],onChange:N,label:p,help:r,note:h,noticeCSS:y}))}))},ZVMq:function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return React.createElement(a.Z,{label:wp.i18n.__("Enable discount codes","shopwp"),help:wp.i18n.__("Adds an input field to the cart so customers can enter a discount code.","shopwp"),settingName:"enableDiscountCodes"})}}}]);