1!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._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d6ea-5c64-7d32-8fd1-7fea88156e1e")}catch(e){}}();import{j as t}from"./jsx-runtime-DuMOuFVt.js";import"./chunk-LFPYN7LY-ZMaTir27.js";import{u as P,f as U,b as $,n as q,B as D,c as H,m as d,l as J,j as K}from"./factory-BL8na6Tv.js";import{C as L}from"./CheckIcon-Cd-iCSvS.js";import{c as M}from"./Popover-CdE9rB3E.js";import{u as S}from"./DirectionProvider-PGwLUtRT.js";import{u as Q}from"./use-id-Dz1nTexX.js";const[X,Y]=M(),Z={};function V(s){const{value:o,defaultValue:r,onChange:a,multiple:c,children:l}=P("ChipGroup",Z,s),[e,h]=S({value:o,defaultValue:r,finalValue:c?[]:null,onChange:a}),C=i=>Array.isArray(e)?e.includes(i):i===e,g=i=>{const n=i.currentTarget.value;Array.isArray(e)?h(e.includes(n)?e.filter(u=>u!==n):[...e,n]):h(n)};return t.jsx(X,{value:{isChipSelected:C,onChange:g,multiple:c},children:l})}V.displayName="@mantine/core/ChipGroup";var G={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};const ee={type:"checkbox"},oe=H((s,{size:o,radius:r,variant:a,color:c,autoContrast:l})=>{const e=s.variantColorResolver({color:c||s.primaryColor,theme:s,variant:a||"filled",autoContrast:l});return{root:{"--chip-fz":K(o),"--chip-size":d(o,"chip-size"),"--chip-radius":r===void 0?void 0:J(r),"--chip-checked-padding":d(o,"chip-checked-padding"),"--chip-padding":d(o,"chip-padding"),"--chip-icon-size":d(o,"chip-icon-size"),"--chip-bg":c||a?e.background:void 0,"--chip-hover":c||a?e.hover:void 0,"--chip-color":c||a?e.color:void 0,"--chip-bd":c||a?e.border:void 0,"--chip-spacing":d(o,"chip-spacing")}}}),x=U((s,o)=>{const r=P("Chip",ee,s),{classNames:a,className:c,style:l,styles:e,unstyled:h,vars:C,id:g,checked:i,defaultChecked:n,onChange:u,value:y,wrapperProps:R,type:A,disabled:b,children:I,size:N,variant:k,icon:z,rootRef:T,autoContrast:ce,mod:B,...F}=r,p=$({name:"Chip",classes:G,props:r,className:c,style:l,classNames:a,styles:e,unstyled:h,vars:C,varsResolver:oe}),m=Y(),_=Q(g),{styleProps:W,rest:w}=q(F),[E,O]=S({value:i,defaultValue:n,finalValue:!1,onChange:u}),j=m?{checked:m.isChipSelected(y),onChange:f=>{m.onChange(f),u?.(f.currentTarget.checked)},type:m.multiple?"checkbox":"radio"}:{},v=j.checked||E;return t.jsxs(D,{size:N,variant:k,ref:T,mod:B,...p("root"),...W,...R,children:[t.jsx("input",{type:A,...p("input"),checked:v,onChange:f=>O(f.currentTarget.checked),id:_,disabled:b,ref:o,value:y,...j,...w}),t.jsxs("label",{htmlFor:_,"data-checked":v||void 0,"data-disabled":b||void 0,...p("label",{variant:k||"filled"}),children:[v&&t.jsx("span",{...p("iconWrapper"),children:z||t.jsx(L,{...p("checkIcon")})}),t.jsx("span",{children:I})]})]})});x.classes=G;x.displayName="@mantine/core/Chip";x.Group=V;export{x as C}; 2 3//# chunkId=01a0d6ea-5c64-7d32-8fd1-7fea88156e1e
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.