"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("clsx"),n=require("@prom-ui/core/Spinner");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=o(e),u=i(r);function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return l=Object.assign?Object.assign.bind():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},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s="JbPkR",b="Smb1v",p="-KDH8",v="_3-2zC",m="K7NKz",d="ASYih",y="vsNQ-",O="X-b7M",g="MP3D6",j=["className","type","loading"],h=a.forwardRef((function(e,r){var i=e.className,o=e.type,h=void 0===o?"checkbox":o,x=e.loading,N=void 0!==x&&x,P=f(e,j);return a.createElement("div",{className:u.default(s,i)},a.createElement("input",l({className:u.default(p,c({},v,N)),ref:r,disabled:N,type:h},P)),a.createElement("div",{className:b},a.createElement(t.CSSTransition,{in:N,timeout:100,classNames:{enterActive:d,enterDone:y,exitActive:O,exitDone:g},unmountOnExit:!0},a.createElement(n.Spinner,{className:m,width:"100%",height:"100%"}))))}));h.displayName="Checkbox",exports.Checkbox=h,require("./style.production.css");
