PageSourceSearch

https://portals.noloco.io/assets/QuickLinks-uoSCl2Bh.js

js noloco.io collected 2026-09-25 18:41:53 UTC 4,939 bytes, 1 lines download raw bytes

1import{j as o}from"./jsx-runtime-esm-DgZK9P7c.js";import{B as z,a as Y,u as F,i as R,g as T,j as D}from"./tabs-CHHObJJW.js";import{t as G,au as J,d as a,ar as $,M as X,n as Z}from"./Icon-Ime4wSjK.js";import{g as k,a2 as W,p as H,l as C,o as h,q as B,m,M as q,a3 as ee}from"./app-vP2jhQjT.js";import{a as b}from"./index-Dhy1axWM.js";import{a5 as re}from"./user-avatar-Zw71S5uB.js";import"./index-CJZQOLKR.js";import"./_commonjsHelpers-CxYHiaSM.js";import"./index-AmsYr5ik.js";import"./index-B8ov4xfp.js";import"./project-wd5IloI0.js";import"./with-selector-Ce4EAgKw.js";import"./react-redux-Bz8azxLH.js";import"./isEqual-BiqEbpPg.js";import"./useAuthWrapper-CWXjgmIl.js";import"./normalizeDates-p6XmbZym.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"967abcd"},r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[new r.Error().stack]=(function(d){for(var c=1;c<arguments.length;c++){var u=arguments[c];if(u!=null)for(var e in u)u.hasOwnProperty(e)&&(d[e]=u[e])}return d})({},r._sentryModuleMetadata[new r.Error().stack],{"_sentryBundlerPluginAppKey:noloco-ui":!0});var i=new r.Error().stack;i&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[i]="2fa8320b-a036-442f-9713-0016ebe4805a",r._sentryDebugIdIdentifier="sentry-dbid-2fa8320b-a036-442f-9713-0016ebe4805a")}catch{}})();const te=["ref","utm_source","utm_medium","utm_campaign","utm_term","utm_content"],se=r=>te.reduce((i,d)=>r[d]?{...i,[d]:r[d]}:i,{}),oe=b.forwardRef(({className:r,children:i,editorMode:d,link:c,onClick:u,style:e,testId:g},p)=>{const{pathname:v,query:x}=k(),{active:j,...f}=W(c,d,se(x)),w=f.to&&f.to===v;return o.jsx(z,{className:r,"data-testid":g,...f,active:w,onClick:u,ref:p,style:e,children:i})}),_e=b.forwardRef(({className:r,contentMaxHeightClass:i,contentRef:d,dense:c,editorMode:u,hasBlockChrome:e,links:g,manualHeightPx:p,onClick:v,project:x,recordScope:j,sectionWidth:f},w)=>{const[t]=Y(),{sm:I}=F(),M=H(),E=C(G),N=h(j),S=B(),y=b.useMemo(()=>g.filter(({visibilityRules:s})=>re({currentUser:M,customRulesEnabled:E,isSmScreen:I,project:x,scope:N,visibilityRules:s,elementType:J,isPublicAccessEnabled:S})),[M,E,S,I,g,x,N]),L=b.useMemo(()=>u?g:y,[u,g,y]),n=L.length,U=b.useMemo(()=>n===3?3:n+2-1-(n+2-1)%2,[n]),_=b.useMemo(()=>!!f&&f<=6,[f]),A=b.useCallback(s=>y.find(l=>l.id===s.id),[y]),P=e?"items-stretch":"items-center",K=a({"border border-stone-100 bg-white":!e&&!t,[`border ${m.surfaces.elevation1} ${m.borders.one}`]:!e&&t,"mx-3 my-1.5 border border-input bg-white shadow-xs":e&&!t,[`mx-3 my-1.5 border shadow-xs ${m.surfaces.elevation2} ${m.borders.one}`]:e&&t}),O=e&&(p!=null||!!i),Q=a({"overflow-hidden":!e||p==null&&!i,"overflow-y-auto":O,[i??""]:e&&p==null&&!!i}),V=a({"grid-cols-1":n===1,"grid-cols-2":n%2===0||n!==1&&n!==3||_&&n!==1,"grid-cols-3":n===3&&!_,"lg:grid-cols-1":_});return o.jsx("div",{className:a(r,"overflow-hidden"),"data-testid":"quick-links-section",children:o.jsx("div",{className:a("grid w-auto rounded-lg md:grid-cols-1",P,K,Q,V),onClick:v,ref:e&&d?d:w,style:e&&p!=null?{maxHeight:p}:void 0,children:L.map((s,l)=>o.jsx(oe,{className:a(`quick-link group relative flex h-full flex-col overflow-hidden ${t?m.borders.one:""}`,`quick-link-${s.id}`,{"p-6":!0,"border-input":e&&!t,"border-b":l<U-2&&n>3,"md:border-b":l<n-1,"border-r md:border-r-0":l%2===0&&n>=2||n===3&&l===1,"opacity-50":!A(s)}),editorMode:u,link:s.link,children:o.jsxs("div",{className:a("flex",{"flex-col":!c,"pr-8":c,"gap-2.5":e&&!c}),"data-testid":"quick-link",children:[s.icon&&s.icon.name&&!s.icon.hidden&&(e?o.jsx("div",{className:a("mr-3 flex shrink-0 items-center justify-center rounded-lg border",{"size-10":!c,"size-8":c}),style:{backgroundColor:R(l,50),borderColor:"var(--popover-border)",color:R(l,600)},children:o.jsx($,{icon:s.icon,size:X})}):o.jsx(z,{bg:T(D(l),100),className:a("mr-3 h-10 w-10 shrink-0 rounded-lg p-2",{"mb-6":!c}),text:T(D(l),600),children:o.jsx($,{className:"opacity-75",icon:s.icon,size:Z})})),o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:a("text-lg font-medium",{[m.text.primary]:t,"text-foreground":!t&&e,"text-stone-900":!t&&!e}),children:s.title||`Link ${l+1}`}),s.description&&(e?o.jsx("div",{className:a({[m.text.secondary]:t,"text-muted-foreground":!t}),children:o.jsx(q,{small:!1,children:s.description})}):o.jsx(q,{className:a("mb-1 mt-2 text-sm",{[m.text.secondary]:t,"text-stone-400":!t}),small:!0,children:s.description}))]}),s.link&&o.jsx("div",{className:a("absolute transform transition-transform duration-300",{"right-6 top-6 group-hover:-translate-y-1 group-hover:translate-x-1":e,"right-8 top-8 h-10 w-10 group-hover:-translate-y-4 group-hover:translate-x-4":!e,"text-muted-foreground":e&&!t,[m.text.secondary]:e&&t,"text-stone-200":!e&&!t,[m.text.tertiary]:!e&&t}),children:o.jsx(ee,{size:e?24:32})})]})},l))})})});export{_e as default};

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.