"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[4786],{84786:(e,n,t)=>{t.r(n),t.d(n,{default:()=>l});var a=t(51609);const l=e=>{const n=n=>{let t=!e.field.value;e.onChangeHandler(t)};let t=e.field,l=t.value?"is-checked":"",o=e.disabled?"is-disabled":"";return(0,a.createElement)("div",{className:"components-base-control components-toggle-control"},(0,a.createElement)("div",{className:"components-base-control__field"},(0,a.createElement)("div",{"data-wp-component":"HStack",className:"components-flex components-h-stack"},(0,a.createElement)("span",{className:"components-form-toggle "+l+" "+o},(0,a.createElement)("input",{onKeyDown:e=>(e=>{"Enter"===e.key&&(e.preventDefault(),n())})(e),checked:t.value,className:"components-form-toggle__input",onChange:e=>n(),id:t.id,type:"checkbox",disabled:e.disabled}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"})),e.label)))}}}]);