PageSourceSearch

https://app.gosherloq.com/static/frontend/assets/Grid-BIKVHla0.js

js gosherloq.com collected 2026-10-02 00:32:08 UTC 4,123 bytes, 1 lines download raw bytes

1import{t as e}from"./jsx-runtime-CbkpsQZ0.js";import{F as t,H as n,I as r,U as i,a,c as o,f as s,g as c,m as l,p as u,q as d,r as f}from"./Text-DjqRmEnZ.js";import{t as p}from"./get-sorted-breakpoints-CMbEoqT3.js";import{a as m}from"./VisuallyHidden-BC1yYl6X.js";import{t as h}from"./get-base-value-BuqEGh75.js";var[g,_]=m(`Grid component was not found in tree`),v=e(),y=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},b=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:y(e,t),x=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},S=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function C({span:e,order:t,offset:n,align:r,selector:a}){let o=c(),l=_(),u=l.breakpoints||o.breakpoints,f=h(e),m=f===void 0?12:f,g=i({"--col-order":h(t)?.toString(),"--col-flex-grow":x(m,l.grow),"--col-flex-basis":y(m,l.columns),"--col-width":m===`content`?`auto`:void 0,"--col-max-width":b(m,l.columns,l.grow),"--col-offset":S(h(n),l.columns),"--col-align-self":h(r)}),C=d(u).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=x(e[a],l.grow),i[a][`--col-flex-basis`]=y(e[a],l.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=b(e[a],l.columns,l.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=S(n[a],l.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),w=p(d(C),u).filter(e=>d(C[e.value]).length>0).map(e=>({query:l.type===`container`?`mantine-grid (min-width: ${u[e.value]})`:`(min-width: ${u[e.value]})`,styles:C[e.value]}));return(0,v.jsx)(s,{styles:g,media:l.type===`container`?void 0:w,container:l.type===`container`?w:void 0,selector:a})}var w={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},T={span:12},E=a(e=>{let{classNames:n,className:r,style:i,styles:a,vars:s,span:c,order:u,offset:d,align:p,...m}=l(`GridCol`,T,e),h=_(),g=o();return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(C,{selector:`.${g}`,span:c,order:u,offset:d,align:p}),(0,v.jsx)(f,{...h.getStyles(`col`,{className:t(r,g),style:i,classNames:n,styles:a}),...m})]})});E.classes=w,E.displayName=`@mantine/core/GridCol`;function D({gap:e,rowGap:t,columnGap:r,selector:a,breakpoints:o,type:l}){let u=c(),f=o||u.breakpoints,m=i({"--grid-gap":n(h(e)),"--grid-row-gap":n(h(t)),"--grid-column-gap":n(h(r))}),g=d(f).reduce((i,a)=>(i[a]||(i[a]={}),typeof e==`object`&&e[a]!==void 0&&(i[a][`--grid-gap`]=n(e[a])),typeof t==`object`&&t[a]!==void 0&&(i[a][`--grid-row-gap`]=n(t[a])),typeof r==`object`&&r[a]!==void 0&&(i[a][`--grid-column-gap`]=n(r[a])),i),{}),_=p(d(g),f).filter(e=>d(g[e.value]).length>0).map(e=>({query:l===`container`?`mantine-grid (min-width: ${f[e.value]})`:`(min-width: ${f[e.value]})`,styles:g[e.value]}));return(0,v.jsx)(s,{styles:m,media:l===`container`?void 0:_,container:l===`container`?_:void 0,selector:a})}var O={gap:`md`,columns:12},k=r((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),A=a(e=>{let t=l(`Grid`,O,e),{classNames:n,className:r,style:i,styles:a,unstyled:s,vars:c,grow:d,gap:p,rowGap:m,columnGap:h,columns:_,align:y,justify:b,children:x,breakpoints:S,type:C,attributes:T,...E}=t,A=u({name:`Grid`,classes:w,props:t,className:r,style:i,classNames:n,styles:a,unstyled:s,attributes:T,vars:c,varsResolver:k}),j=o();return C===`container`&&S?(0,v.jsxs)(g,{value:{getStyles:A,grow:d,columns:_,breakpoints:S,type:C},children:[(0,v.jsx)(D,{selector:`.${j}`,...t}),(0,v.jsx)(`div`,{...A(`container`),children:(0,v.jsx)(f,{...A(`root`,{className:j}),...E,children:(0,v.jsx)(`div`,{...A(`inner`),children:x})})})]}):(0,v.jsxs)(g,{value:{getStyles:A,grow:d,columns:_,breakpoints:S,type:C},children:[(0,v.jsx)(D,{selector:`.${j}`,...t}),(0,v.jsx)(f,{...A(`root`,{className:j}),...E,children:(0,v.jsx)(`div`,{...A(`inner`),children:x})})]})});A.classes=w,A.varsResolver=k,A.displayName=`@mantine/core/Grid`,A.Col=E;export{A as t};

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.