1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f7f86b54-2c6e-5a26-aa87-656d206f42b8")}catch(e){}}(); 3import{j as t}from"./jsx-runtime-DGb9BwPy.js";import{c as v}from"./compiler-runtime-icCLRh7A.js";import{c as i}from"./clsx-CJtJQcKw.js";import{r as u}from"./chunk-UVKPFVEO-jFsD8-0h.js";import{f as d}from"./figma-token-2bZMw-6T.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();const E=n=>{const o=v.c(3),{className:c}=n;let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("path",{d:"M13.5 4.5L6 12L2.5 8.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o[0]=s):s=o[0];let a;return o[1]!==c?(a=t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:c,children:s}),o[1]=c,o[2]=a):a=o[2],a},S=({$active:n,name:o,$prefix:c,$suffix:s,$suffixClassName:a,className:k,onClick:m,$setValue:b,$asDiv:w=!1,...j})=>{const l=u.useRef(null),[r,g]=u.useState(n),f=u.useCallback(e=>{l.current&&(l.current.checked=e,l.current.value=e?"true":"false",l.current.setAttribute("aria-checked",e?"true":"false"))},[]);u.useEffect(()=>{n!==void 0&&g(n)},[n]),u.useEffect(()=>{r!==void 0&&f(r)},[r,f]);const p=e=>{e.stopPropagation();const h=!r;f(h),m?m(e):b?b(h,e):g(h)},x=i("flex items-center gap-gap-s","transition-all duration-200 cursor-pointer",d({typo:"body/md/regular"}),k),y=t.jsxs(t.Fragment,{children:[o&&t.jsx("input",{ref:l,name:o,type:"checkbox",className:"sr-only",tabIndex:-1}),c&&t.jsx("span",{className:i(d({color:"color/text/default"})),children:c}),t.jsx("div",{className:i("inline-block relative w-5 h-5","rounded border transition-colors duration-150 ease-in-out","focus:ring-2 focus:ring-offset-2",{[i(d({bg:"color/bg/default",border:"color/borders/default"}),"hover:bg-primary-light-ghost hover:outline-0")]:!r,[i(d({bg:"color/primary/default"}),"border-primary-default")]:r},"focus-within:ring-primary-light-ghost"),children:t.jsx(E,{className:i("absolute inset-0 w-full h-full p-0.5","transition-opacity duration-200 ease-in-out",{"opacity-100":r,"opacity-0":!r})})}),s&&t.jsx("span",{className:i(d({color:"color/text/default",typo:"body/md/regular"}),a),children:s})]});return w?t.jsx("div",{onClick:p,className:x,role:"checkbox","aria-checked":r,tabIndex:0,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),p(e))},children:y}):t.jsx("button",{type:"button",onClick:p,role:"checkbox","aria-checked":!!r,className:x,...j,children:y})};export{S as C}; 4 5//# debugId=f7f86b54-2c6e-5a26-aa87-656d206f42b8
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.