PageSourceSearch

https://www.brueggemann-immobilien.com/assets/Checkbox-CuX4J5m1.js

js brueggemann-immobilien.com collected 2026-10-07 05:22:45 UTC 6,547 bytes, 1 lines download raw bytes

1import{i as fe,a as z,f as T,c as L,d as U,h as F,t as H,B as D,J as K,g as $,k as Q,j as ke}from"./index-DggbyS6I.js";import{b as X,U as ye,g as Y,d as Z,u as ge,e as _e}from"./campaign-attribution-Zmb6A6Hz.js";import{I as ee,a as je,b as Ie,c as we}from"./InlineInput-7wstBph1.js";import{r as y,j as s}from"./index-BIfNIV7b.js";const M=y.createContext(null),Re={hiddenInputValuesSeparator:","},O=fe((e=>{const{value:o,defaultValue:r,onChange:u,size:i,wrapperProps:h,children:l,readOnly:t,name:p,hiddenInputValuesSeparator:x,hiddenInputProps:g,maxSelectedValues:b,disabled:w,..._}=z("CheckboxGroup",Re,e),[n,C]=X({value:o,defaultValue:r,finalValue:[],onChange:u}),v=d=>{const a=typeof d=="string"?d:d.currentTarget.value;if(t)return;const c=n.includes(a);!c&&b&&n.length>=b||C(c?n.filter(k=>k!==a):[...n,a])},m=d=>{if(w)return!0;if(!b)return!1;const a=n.includes(d),c=n.length>=b;return!a&&c},f=n.join(x);return s.jsx(M,{value:{value:n,onChange:v,size:i,isDisabled:m},children:s.jsxs(ee.Wrapper,{size:i,...h,..._,labelElement:"div",__staticSelector:"CheckboxGroup",children:[s.jsx(je,{role:"group",children:l}),s.jsx("input",{type:"hidden",name:p,value:f,...g})]})})}));O.classes=ee.Wrapper.classes;O.displayName="@mantine/core/CheckboxGroup";var oe={card:"m_26775b0a"};const re=y.createContext(null),Se={withBorder:!0},te=U((e,{radius:o})=>({card:{"--card-radius":F(o)}})),G=T(e=>{const o=z("CheckboxCard",Se,e),{classNames:r,className:u,style:i,styles:h,unstyled:l,vars:t,checked:p,mod:x,withBorder:g,value:b,onClick:w,defaultChecked:_,onChange:n,indeterminate:C,attributes:v,...m}=o,f=L({name:"CheckboxCard",classes:oe,props:o,className:u,style:i,classNames:r,styles:h,unstyled:l,attributes:v,vars:t,varsResolver:te,rootSelector:"card"}),d=y.use(M),a=typeof p=="boolean"?p:d?d.value.includes(b||""):void 0,[c,k]=X({value:a,defaultValue:_,finalValue:!1,onChange:n});return s.jsx(re,{value:{checked:c,indeterminate:C},children:s.jsx(ye,{mod:[{"with-border":g,checked:c,indeterminate:C},x],...f("card"),...m,role:"checkbox","aria-checked":C?"mixed":c,onClick:P=>{w?.(P),d?.onChange(b||""),k(!c)}})})});G.displayName="@mantine/core/CheckboxCard";G.classes=oe;G.varsResolver=te;function Pe({size:e,style:o,...r}){const u=e!==void 0?{width:H(e),height:H(e),...o}:o;return s.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:u,"aria-hidden":!0,...r,children:s.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function se({indeterminate:e,...o}){return e?s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...o,children:s.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):s.jsx(Pe,{...o})}var ne={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const Ve={icon:se,variant:"filled",radius:"sm"},ae=U((e,{radius:o,color:r,size:u,iconColor:i,variant:h,autoContrast:l})=>{const t=K({color:r||e.primaryColor,theme:e}),p=t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-outline)`:t.color;return{indicator:{"--checkbox-size":Q(u,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:F(o),"--checkbox-color":h==="outline"?p:$(r,e),"--checkbox-icon-color":i?$(i,e):Y(l,e)?Z({color:r,theme:e,autoContrast:l}):void 0}}}),A=T(e=>{const o=z("CheckboxIndicator",Ve,e),{classNames:r,className:u,style:i,styles:h,unstyled:l,vars:t,icon:p,indeterminate:x,radius:g,color:b,iconColor:w,autoContrast:_,checked:n,mod:C,variant:v,disabled:m,attributes:f,...d}=o,a=L({name:"CheckboxIndicator",classes:ne,props:o,className:u,style:i,classNames:r,styles:h,unstyled:l,attributes:f,vars:t,varsResolver:ae,rootSelector:"indicator"}),c=y.use(re),k=typeof x=="boolean"?x:c?.indeterminate,P=typeof n=="boolean"||typeof x=="boolean"?n||x:c?.checked||c?.indeterminate||!1;return s.jsx(D,{...a("indicator",{variant:v}),variant:v,mod:[{checked:P,disabled:m},C],...d,children:s.jsx(p,{indeterminate:k,...a("icon")})})});A.displayName="@mantine/core/CheckboxIndicator";A.classes=ne;A.varsResolver=ae;var ce={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","
1input--outline":"m_215c4542"};const Be={labelPosition:"right",icon:se,withErrorStyles:!0,variant:"filled",radius:"sm"},ie=U((e,{radius:o,color:r,size:u,iconColor:i,variant:h,autoContrast:l})=>{const t=K({color:r||e.primaryColor,theme:e}),p=t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-outline)`:t.color;return{root:{"--checkbox-size":Q(u,"checkbox-size"),"--checkbox-radius":o===void 0?void 0:F(o),"--checkbox-color":h==="outline"?p:$(r,e),"--checkbox-icon-color":i?$(i,e):Y(l,e)?Z({color:r,theme:e,autoContrast:l}):void 0}}}),I=T(e=>{const o=z("Checkbox",Be,e),{classNames:r,className:u,style:i,styles:h,unstyled:l,vars:t,color:p,label:x,id:g,size:b,radius:w,wrapperProps:_,checked:n,labelPosition:C,description:v,error:m,disabled:f,variant:d,indeterminate:a,icon:c,rootRef:k,iconColor:P,onChange:le,autoContrast:Ne,mod:de,attributes:W,readOnly:J,onClick:ue,withErrorStyles:he,ref:pe,...xe}=o,R=y.useRef(null),V=y.use(M),be=b||V?.size,B=L({name:"Checkbox",props:o,classes:ce,className:u,style:i,classNames:r,styles:h,unstyled:l,attributes:W,vars:t,varsResolver:ie}),{styleProps:Ce,rest:j}=ke(xe),N=ge(g),me=[v?`${N}-description`:void 0,m&&typeof m!="boolean"?`${N}-error`:void 0,j["aria-describedby"]].filter(Boolean).join(" ")||void 0,E={checked:V?.value.includes(j.value)??n,onChange:S=>{J||(V?.onChange(S),le?.(S))}},ve=V?.isDisabled?.(j.value)??!1,q=f||ve;return y.useEffect(()=>{R.current&&(R.current.indeterminate=a||!1,a?R.current.setAttribute("data-indeterminate","true"):R.current.removeAttribute("data-indeterminate"))},[a]),s.jsx(Ie,{...B("root"),__staticSelector:"Checkbox",__stylesApiProps:o,id:N,size:be,labelPosition:C,label:x,description:v,error:m,disabled:q,classNames:r,styles:h,unstyled:l,"data-checked":E.checked||n||void 0,variant:d,ref:k,mod:de,attributes:W,inert:j.inert,...Ce,..._,children:s.jsxs(D,{...B("inner"),mod:{labelPosition:C},children:[s.jsx(D,{component:"input",id:N,ref:_e(R,pe),mod:{error:!!m,"with-error-styles":he},...B("input",{focusable:!0,variant:d}),...j,...E,"aria-describedby":me,disabled:q,inert:j.inert,type:"checkbox",onClick:S=>{J&&E.checked===void 0&&S.preventDefault(),ue?.(S)}}),s.jsx(c,{indeterminate:a,...B("icon")})]})})});I.classes={...ce,...we};I.varsResolver=ie;I.displayName="@mantine/core/Checkbox";I.Group=O;I.Indicator=A;I.Card=G;export{I as C,Pe as a};

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.