"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingPricingCompareAt-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,p=wp.components,c=p.ToggleControl,r=p.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))})),p={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,s=e.help,m=void 0!==s&&s,h=e.note,u=void 0!==h&&h,g=e.alsoChange,d=void 0!==g&&g,w=e.disable,C=void 0!==w&&w,S=React.useContext,b=wp.components.Disabled,f=S(l.Z),v=(0,a.Z)(f,2),y=v[0],N=v[1],R=p;function Z(){N({type:"UPDATE_SETTING",payload:{key:n,value:!y[n]}}),d&&N({type:"UPDATE_SETTING",payload:{key:d,value:!y[d]}})}return(0,o.tZ)(React.Fragment,null,C?(0,o.tZ)(b,null,(0,o.tZ)(i,{settingName:y[n],onChange:Z,label:r,help:m,note:u,noticeCSS:R})):(0,o.tZ)(i,{settingName:y[n],onChange:Z,label:r,help:m,note:u,noticeCSS:R}))}))},b0Sa:function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return React.createElement(a.Z,{label:wp.i18n.__("Show compare at pricing","shopwp"),help:wp.i18n.__("When enabled, all products will show the 'compare at' price if one exists.","shopwp"),settingName:"productsCompareAt"})}}}]);