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