Liferay.Loader.define("portlet-configuration-web@5.0.40/js/PermissionsCheckbox",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){var n;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{checked:t,componentId:r,indeterminate:n,locale:l,portletId:i,portletNamespace:f}=e,u=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["checked","componentId","indeterminate","locale","portletId","portletNamespace"]);const[p,s]=(0,a.useState)(Boolean(t||n)),[d,y]=(0,a.useState)(Boolean(n)),[b,O]=(0,a.useState)(n?"indeterminate":"");return a.default.createElement(o.ClayCheckbox,c({checked:p,indeterminate:d,inline:!0,onChange:()=>{s((e=>!e)),d&&(y(!1),O(""))},value:b},u))};var o=r("@frontend-taglib-clay$clayui/form"),a=((n=r("liferay!frontend-js-react-web$prop-types"))&&n.__esModule,function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=PermissionsCheckbox.js.map