1import{t as e}from"./jsx-runtime-B5yqYJvp.js";import{F as t,O as n,R as r,W as i,d as a,f as o,n as s,t as c}from"./Box-lnBVAJYI.js";import{t as l}from"./get-contrast-color-CXZE8yJr.js";import{t as u}from"./get-auto-contrast-value-BTPwFOS2.js";function d(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,a=typeof t==`number`?t:t.y,o=i(r),s=i(a),[c,l]=e.split(`-`);return c===`top`&&(n[`--indicator-top`]=s,n[`--indicator-translate-y`]=`-50%`),c===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),c===`bottom`&&(n[`--indicator-bottom`]=s,n[`--indicator-translate-y`]=`50%`),l===`start`&&(n[`--indicator-left`]=o,n[`--indicator-translate-x`]=`-50%`),l===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),l===`end`&&(n[`--indicator-right`]=o,n[`--indicator-translate-x`]=`50%`),n}var f={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},p=e(),m={position:`top-end`,offset:0,showZero:!0},h=t((e,{color:t,position:a,offset:o,size:s,radius:c,zIndex:f,autoContrast:p})=>({root:{"--indicator-color":t?n(t,e):void 0,"--indicator-text-color":u(p,e)?l({color:t,theme:e,autoContrast:p}):void 0,"--indicator-size":i(s),"--indicator-radius":c===void 0?void 0:r(c),"--indicator-z-index":f?.toString(),...d(a,o)}})),g=s(e=>{let t=o(`Indicator`,m,e),{classNames:n,className:r,style:i,styles:s,unstyled:l,vars:u,children:d,position:g,offset:_,inline:v,label:y,radius:b,color:x,withBorder:S,disabled:C,processing:w,zIndex:T,autoContrast:E,maxValue:D,showZero:O,mod:k,attributes:A,...j}=t,M=a({name:`Indicator`,classes:f,props:t,className:r,style:i,classNames:n,styles:s,unstyled:l,attributes:A,vars:u,varsResolver:h}),N=!O&&(y===0||y===`0`),P=D!==void 0&&typeof y==`number`&&y>D?`${D}+`:y;return(0,p.jsxs)(c,{...M(`root`),mod:[{inline:v},k],...j,children:[!C&&!N&&(0,p.jsx)(c,{mod:{"with-label":!!y,"with-border":S,processing:w},...M(`indicator`),children:P}),d]})});g.classes=f,g.varsResolver=h,g.displayName=`@mantine/core/Indicator`;export{g as t}; 2//# sourceMappingURL=Indicator-FV87uEWr.js.map
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.