"use strict";(self.webpackChunkreact_typescript_webpack=self.webpackChunkreact_typescript_webpack||[]).push([[1789,4170],{91789:(e,a,n)=>{n.d(a,{A:()=>c});var o=n(39248),t=n(17437),m=n(44831),i=n(96540),v=n(2445),r=i.forwardRef(function(e,a){var n=e.id,i=void 0===n?(0,m.Ak)():n,r=e.name,o=e.labelCss,t=e.inputCss,c=e.label,l=void 0===c?"":c,s=e.checked,d=e.value,b=e.disabled,p=void 0!==b&&b,h=e.onChange,u=e.onBlur,g=e.isIndeterminate,k=void 0!==g&&g,x=e.tabIndex,f=void 0===x?-1:x;return(0,v.FD)("label",{htmlFor:i,css:[w.container,o,";label:Checkbox;"],children:[(0,v.Y)("input",{ref:a,id:i,name:r,type:"checkbox",value:d,checked:!!s,disabled:p,"aria-invalid":e["aria-invalid"],tabIndex:f,onChange:function(e){h&&h(!!k||e.target.checked,e)},onBlur:u,css:[t,w.checkbox({hasLabel:!!l,isIndeterminate:k,disabled:p,tabIndex:f}),";label:Checkbox;"]}),(0,v.Y)("span",{}),l]})}),w={container:{name:"av2t4k-container",styles:"display:flex;align-items:center;cursor:pointer;user-select:none;label:container;"},checkbox:function(e){var a=e.hasLabel,n=e.isIndeterminate,i=e.disabled,r=e.tabIndex;return(0,t.AH)("position:absolute;opacity:0;height:0;width:0;&+span{position:relative;cursor:pointer;font-size:14px;display:inline-flex;align-items:center;",a&&(0,t.AH)("margin-right:",o.YK[10],";;label:checkbox;"),";}&+span::before{content:'';background-color:",o.nm.basic.white,";border:0.5px solid ",o.nm.interactive.disabled,";border-radius:3px;box-shadow:",o.r7.button,";width:18px;height:18px;}&:checked+span::before{background-image:url(\"data:image/svg+xml,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.99 9.241a.685.685 0 0 0 .6-.317l4.59-7.149a.793.793 0 0 0 .146-.43C9.326 1 9.082.76 8.73.76c-.239 0-.385.088-.532.317L3.965 7.791 1.792 5.003c-.146-.19-.298-.269-.513-.269-.351 0-.605.25-.605.591 0 .152.054.298.18.45l2.53 3.154c.17.215.351.312.605.312Z' fill='%23fff'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:10px 10px;background-position:center center;background-color:",o.nm.basic.primary.default,";border:0.5px solid ",o.nm.basic.surface,";",i&&(0,t.AH)("background-color:",o.nm.icon.disabled,";;label:checkbox;"),";}",n&&(0,t.AH)("&+span::before{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='2' fill='none'%3E%3Crect width='10' height='1.5' y='.25' fill='%23fff' rx='.75'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:10px;background-position:center center;background-color:",o.nm.basic.primary.default,";border:0.5px solid ",o.nm.basic.surface,";};label:checkbox;")," ",-1!==r&&(0,t.AH)("&:focus+span::before{outline:1px solid ",o.nm.basic.primary.default,";border-radius:3px;};label:checkbox;"),";;label:checkbox;")}};const c=r}}]);