PageSourceSearch

https://medon.lv/assets/SimpleGrid-D05Mp0f0.js

js medon.lv collected 2026-10-02 21:03:43 UTC 2,838 bytes, 1 lines download raw bytes

1import{k as N,t as l,I as G,L as V,v as j,A as $,j as F,N as M,P as R,O as I,B as w}from"./Box-Br96zz_6.js";import{p as B}from"./px-DP8G9a6Q.js";import{a as E}from"./get-sorted-breakpoints-BcBmEGf0.js";import{j as i}from"./jsx-runtime-u17CrQMm.js";function d(s){return typeof s=="object"&&s!==null?"base"in s?s.base:void 0:s}function q(s){if(s!==void 0)return typeof s=="number"?$(s):s}function L({spacing:s,verticalSpacing:r,cols:o,minColWidth:n,autoRows:f,selector:c}){const u=V(),a=r===void 0?s:r,y=n!==void 0,g=N({"--sg-spacing-x":l(d(s)),"--sg-spacing-y":l(d(a)),"--sg-auto-rows":f,...y?{"--sg-min-col-width":q(n)}:{"--sg-cols":d(o)?.toString()}}),m=j(u.breakpoints).reduce((t,e)=>(t[e]||(t[e]={}),typeof s=="object"&&s[e]!==void 0&&(t[e]["--sg-spacing-x"]=l(s[e])),typeof a=="object"&&a[e]!==void 0&&(t[e]["--sg-spacing-y"]=l(a[e])),!y&&typeof o=="object"&&o[e]!==void 0&&(t[e]["--sg-cols"]=o[e]),t),{});return i.jsx(G,{styles:g,media:E(j(m),u.breakpoints).filter(t=>j(m[t.value]).length>0).map(t=>({query:`(min-width: ${u.breakpoints[t.value]})`,styles:m[t.value]})),selector:c})}function S(s){return typeof s=="object"&&s!==null?j(s):[]}function O(s){return s.sort((r,o)=>B(r)-B(o))}function T({spacing:s,verticalSpacing:r,cols:o,minColWidth:n}){return O(Array.from(new Set([...S(s),...S(r),...n!==void 0?[]:S(o)])))}function U({spacing:s,verticalSpacing:r,cols:o,minColWidth:n,autoRows:f,selector:c}){const u=r===void 0?s:r,a=n!==void 0,y=N({"--sg-spacing-x":l(d(s)),"--sg-spacing-y":l(d(u)),"--sg-auto-rows":f,...a?{"--sg-min-col-width":q(n)}:{"--sg-cols":d(o)?.toString()}}),g=T({spacing:s,verticalSpacing:r,cols:o,minColWidth:n}),m=g.reduce((t,e)=>(t[e]||(t[e]={}),typeof s=="object"&&s[e]!==void 0&&(t[e]["--sg-spacing-x"]=l(s[e])),typeof u=="object"&&u[e]!==void 0&&(t[e]["--sg-spacing-y"]=l(u[e])),!a&&typeof o=="object"&&o[e]!==void 0&&(t[e]["--sg-cols"]=o[e]),t),{});return i.jsx(G,{styles:y,container:g.map(t=>({query:`simple-grid (min-width: ${t})`,styles:m[t]})),selector:c})}var _={container:"m_925c2d2c",root:"m_2415a157"};const z={cols:1,spacing:"md",type:"media"},A=F(s=>{const r=M("SimpleGrid",z,s),{classNames:o,className:n,style:f,styles:c,unstyled:u,vars:a,cols:y,verticalSpacing:g,spacing:m,type:t,minColWidth:e,autoFlow:C,autoRows:D,attributes:P,...v}=r,x=R({name:"SimpleGrid",classes:_,props:r,className:n,style:f,classNames:o,styles:c,unstyled:u,attributes:P,vars:a}),p=I(),h=e!==void 0?C||"auto-fill":void 0;return t==="container"?i.jsxs(i.Fragment,{children:[i.jsx(U,{...r,selector:`.${p}`}),i.jsx("div",{...x("container"),children:i.jsx(w,{...x("root",{className:p}),...v,"data-auto-cols":h})})]}):i.jsxs(i.Fragment,{children:[i.jsx(L,{...r,selector:`.${p}`}),i.jsx(w,{...x("root",{className:p}),...v,"data-auto-cols":h})]})});A.classes=_;A.displayName="@mantine/core/SimpleGrid";export{A as S,d as g};

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.