import{r as o,c as r,h as e,H as a}from"./p-cb5076d4.js";const l=class{constructor(e){o(this,e),this.change=r(this,"change",7),this.scale="medium",this.tint="primary",this.disabled=!1,this.checked=!1,this.inline=!1,this.leaned=!1}render(){return e(a,{class:{inline:this.inline}},e("label",{class:{disabled:this.disabled,[this.scale]:!0,[this.tint]:!0,leaned:this.leaned}},this.label,e("input",{class:"input",type:"checkbox",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,onChange:o=>{this.change.emit(!this.checked),o.stopPropagation()}}),e("span",{class:"check-mark"})))}};l.style=':host{display:block}:host(.inline){display:inline-block;margin-right:calc(4 * var(--spacing-unit))}label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;vertical-align:top;display:block}label:hover:not(.disabled) .input:checked~.check-mark{-webkit-box-shadow:0 0 5px var(--base-color);box-shadow:0 0 5px var(--base-color);border-color:var(--base-color-light);background:var(--base-color-light)}label:hover:not(.disabled) .input:not(:checked)~.check-mark{border-color:var(--base-color)}label.disabled{cursor:default;color:var(--color-disabled)}label.leaned{margin:0}label.small{padding:4px 4px 4px 22px}label.medium{padding:6px 6px 6px 28px}label.large{padding:8px 8px 8px 34px}label.neutral{--base-color:var(--color-neutral);--base-color-light:var(--color-neutral-light)}label.primary{--base-color:var(--color-primary);--base-color-light:var(--color-primary-light)}label.secondary{--base-color:var(--color-secondary);--base-color-light:var(--color-secondary-light)}label.warning{--base-color:var(--color-warning);--base-color-light:var(--color-warning-light)}label.danger{--base-color:var(--color-danger);--base-color-light:var(--color-danger-light)}label.small .check-mark{height:14px;width:14px;left:4px}label.medium .check-mark{height:16px;width:16px;left:6px}label.large .check-mark{height:18px;width:18px;left:8px}label.leaned .check-mark{left:0}input{opacity:0;position:absolute;cursor:pointer;margin:0}input:disabled{cursor:no-drop}input:checked:not(:disabled)~.check-mark{border-color:var(--base-color);background:var(--base-color)}input:checked:disabled~.check-mark{border-color:var(--color-disabled);background:var(--color-disabled)}input:checked~.check-mark:after{display:block}input:focus:not(.disabled)~.check-mark{-webkit-box-shadow:0 0 5px var(--base-color);box-shadow:0 0 5px var(--base-color);border-color:var(--base-color)}.check-mark{top:0;bottom:0;margin:auto;position:absolute;border-radius:3px;-webkit-transition:all .3s;transition:all .3s;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid var(--color-border);background-color:var(--color-input-background)}.check-mark:after{content:"";position:absolute;display:none;left:0;top:35%;bottom:50%;right:0;margin:auto;width:10px;height:6px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-box-sizing:border-box;box-sizing:border-box;border-color:var(--color-background-secondary);border-style:solid;border-width:0px 0px 3px 3px}';export{l as dvn_checkbox}