"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingCacheEnableDataCache-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,m=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(m,{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,m=void 0!==s&&s,p=e.help,r=void 0!==p&&p,h=e.note,u=void 0!==h&&h,g=e.alsoChange,C=void 0!==g&&g,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),E=w[0],R=w[1],y=c;function N(){R({type:"UPDATE_SETTING",payload:{key:n,value:!E[n]}}),C&&R({type:"UPDATE_SETTING",payload:{key:C,value:!E[C]}})}return(0,o.tZ)(React.Fragment,null,d?(0,o.tZ)(f,null,(0,o.tZ)(i,{settingName:E[n],onChange:N,label:m,help:r,note:u,noticeCSS:y})):(0,o.tZ)(i,{settingName:E[n],onChange:N,label:m,help:r,note:u,noticeCSS:y}))}))},qLRD:function(e,t,n){n.r(t);var a=n("XyRh");t.default=function(){return React.createElement(a.Z,{label:wp.i18n.__("Enable data cache","shopwp"),settingName:"enableDataCache"})}}}]);