text: import"./esm-chunk-d81494b9.js";import{ensureElement as n}from"./esm-dom-utils-88a2c0cb.js";function e(e,t,i,o,c){if(!(e=n(e)))return;e.indeterminate=i;let r=function(n,e){return e?0:n?1:2}(t,i),u=t;e.onchange=function(n){o?(r=(r+1)%3,function(n,e){let t=!1,i=!1;0===e?t=!0:1===e&&(i=!0);n.indeterminate=t,n.checked=i}(e,r),u=function(n){return 0===n?null:1===n}(r)):u=!u,c.invokeMethodAsync("RaiseCheckedChanged",u)}}const t={init:e};export default t;export{e as init};
  