PageSourceSearch

https://www.commonfate.io/_next/static/chunks/pages/community-9c7cc90db2e31707.js

js commonfate.io collected 2026-10-02 14:56:03 UTC 14,826 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44],{4129:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community",function(){return n(2293)}])},347:function(e,t,n){"use strict";var r=n(1527),i=n(2983),a=n.n(i);t.Z=e=>{let{label:t,icon:n,href:i}=e;return(0,r.jsxs)(a(),{href:i,className:"flex items-center justify-center gap-1 rounded-full border border-white px-6 py-[10px] text-xs leading-3 tracking-[-0.025px] text-white hover:scale-105 lg:text-sm lg:leading-[14px] xl:px-8 xl:py-[13px]",children:[n&&(0,r.jsx)(n,{className:"h-4 fill-white"}),t]})}},2293:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return community}});var r,i=n(1527),a=n(2983),o=n.n(a),s=n(4722),u=n(4284),c=n(347),l=n(959);/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(i,a){function fulfilled(e){try{step(r.next(e))}catch(e){a(e)}}function rejected(e){try{step(r.throw(e))}catch(e){a(e)}}function step(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})}function __generator(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var noop=function(){},f=noop(),d=Object,isUndefined=function(e){return e===f},isFunction=function(e){return"function"==typeof e},mergeObjects=function(e,t){return d.assign({},e,t)},g="undefined",hasWindow=function(){return typeof window!=g},h=new WeakMap,m=0,stableHash=function(e){var t,n,r=typeof e,i=e&&e.constructor,a=i==Date;if(d(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=h.get(e))return t;if(t=++m+"~",h.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=stableHash(e[n])+",";h.set(e,t)}if(i==d){t="#";for(var o=d.keys(e).sort();!isUndefined(n=o.pop());)isUndefined(e[n])||(t+=n+":"+stableHash(e[n])+",");h.set(e,t)}}return t},p=!0,v=hasWindow(),b=typeof document!=g,x=v&&window.addEventListener?window.addEventListener.bind(window):noop,y=b?document.addEventListener.bind(document):noop,w=v&&window.removeEventListener?window.removeEventListener.bind(window):noop,C=b?document.removeEventListener.bind(document):noop,j={initFocus:function(e){return y("visibilitychange",e),x("focus",e),function(){C("visibilitychange",e),w("focus",e)}},initReconnect:function(e){var onOnline=function(){p=!0,e()},onOffline=function(){p=!1};return x("online",onOnline),x("offline",onOffline),function(){w("online",onOnline),w("offline",onOffline)}}}
14,O=!hasWindow()||"Deno"in window,k=O?l.useEffect:l.useLayoutEffect,_="undefined"!=typeof navigator&&navigator.connection,E=!O&&_&&(["slow-2g","2g"].includes(_.effectiveType)||_.saveData),serialize=function(e){if(isFunction(e))try{e=e()}catch(t){e=""}var t=[].concat(e),n=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?stableHash(e):"")?"$swr$"+e:"";return[e,t,n]},R=new WeakMap,broadcastState=function(e,t,n,r,i,a,o){void 0===o&&(o=!0);var s=R.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(o&&d)for(var g=0;g<d.length;++g)d[g](n,r,i);return a&&(delete l[t],f&&f[0])?f[0](2).then(function(){return e.get(t)}):e.get(t)},S=0,getTimestamp=function(){return++S},internalMutate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return __awaiter(void 0,void 0,void 0,function(){var t,n,r,i,a,o,s,u,c,l,d,g,h,m,p,v,b,x,y,w;return __generator(this,function(C){switch(C.label){case 0:if(t=e[0],n=e[1],r=e[2],o=!!isUndefined((a="boolean"==typeof(i=e[3])?{revalidate:i}:i||{}).populateCache)||a.populateCache,s=!1!==a.revalidate,u=!1!==a.rollbackOnError,c=a.optimisticData,d=(l=serialize(n))[0],g=l[2],!d)return[2];if(h=R.get(t)[2],e.length<3)return[2,broadcastState(t,d,t.get(d),f,f,s,!0)];if(m=r,v=getTimestamp(),h[d]=[v,0],b=!isUndefined(c),x=t.get(d),b&&(y=isFunction(c)?c(x):c,t.set(d,y),broadcastState(t,d,y)),isFunction(m))try{m=m(t.get(d))}catch(e){p=e}if(!(m&&isFunction(m.then)))return[3,2];return[4,m.catch(function(e){p=e})];case 1:if(m=C.sent(),v!==h[d][0]){if(p)throw p;return[2,m]}p&&b&&u&&(o=!0,m=x,t.set(d,x)),C.label=2;case 2:return o&&(p||(isFunction(o)&&(m=o(m,x)),t.set(d,m)),t.set(g,mergeObjects(t.get(g),{error:p}))),h[d][1]=getTimestamp(),[4,broadcastState(t,d,m,p,f,s,!!o)];case 3:if(w=C.sent(),p)throw p;return[2,o?w:m]}})})},revalidateAllKeys=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},initCache=function(e,t){if(!R.has(e)){var n=mergeObjects(j,t),r={},i=internalMutate.bind(f,e),a=noop;if(R.set(e,[r,{},{},{},i]),!O){var o=n.initFocus(setTimeout.bind(f,revalidateAllKeys.bind(f,r,0))),s=n.initReconnect(setTimeout.bind(f,revalidateAllKeys.bind(f,r,1)));a=function(){o&&o(),s&&s(),R.delete(e)}}return[e,i,a]}return[e,R.get(e)[4]]},F=initCache(new Map),T=F[0],N=mergeObjects({onLoadingSlow:noop,onSuccess:noop,onError:noop,onErrorRetry:function(e,t,n,r,i){var a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(isUndefined(a)||!(o>a))&&setTimeout(r,s,i)},onDiscarded:noop,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:E?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:E?5e3:3e3,compare:function(e,t){return stableHash(e)==stableHash(t)},isPaused:function(){return!1},cache:T,mutate:F[1],fallback:{}},{isOnline:function(){return p},isVisible:function(){var e=b&&document.visibilityState;return isUndefined(e)||"hidden"!==e}}),mergeConfigs=function(e,t){var n=mergeObjects(e,t);if(t){var r=e.use,i=e.fallback,a=t.use,o=t.fallback;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=mergeObjects(i,o))}return n},I=(0,l.createContext)({}),useStateWithDeps=function(e,t){var n=(0,l.useState)({})[1],r=(0,l.useRef)(e),i=(0,l.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,l.useCallback)(function(e){var a=!1,o=r.current;for(var s in e)o[s]!==e[s]&&(o[s]=e[s],i.current[s]&&(a=!0));a&&!t.current&&n({})},[]);return k(function(){r.current=e}),[r,i.current,a]},subscribeCallback=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},U={dedupe:!0};d.defineProperty(function(e){var t=e.value,n=mergeConfigs((0,l.useContext)(I),t),r=t&&t.provider,i=(0,l.useState)(function(){return r?initCache(r(n.cache||T),t):f})[0];return i&&(n.cache=i[0],n.mutate=i[1]),k(function(){return i?i[2]:f},[]),(0,l.createElement)(I.Provider,mergeObjects(e,{value:n}))},"default",{value:N});var A=(r=function(e,t,n){var r=n.cache,i=n.compare,a=n.fallbackData,o=n.suspense,s=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,h=R.get(r),m=h[0],p=h[1],v=h[2],b=h[3],x=serialize(e),y=x[0],w=x[1],C=x[2],j=(0,l.useRef)(!1),_=(0,l.useRef)(!1),E=(0,l.useRef)(y),S=(0,l.useRef)(t),F=(0,l.useRef)(n),getConfig=function(){return F.current},isActive=function(){return getConfig().isVisible()&&getConfig().isOnline()},patchFetchInfo=function(e){return r.set(C,mergeObjects(r.get(C),e))},T=r.get(y),N=isUndefined(a)?n.fallback[y]:a,I=isUndefined(T)?N:T,A=r.get(C)||{},V=A.error,D=!j.current,shouldRevalidate=function(){return D&&!isUndefined(s)?s:!getConfig().isPaused()&&(o?!isUndefined(I)&&n.revalidateIfStale:isUndefined(I)||n.revalidateIfStale)},M=!!y&&!!t&&(!!A.isValidating||D&&shouldRevalidate()),W=useStateWithDeps({data:I,error:V,isValidating:M},_),P=W[0],L=W[1],H=W[2],q=(0,l.useCallback)(function(e){return __awaiter(void 0,void 0,void 0,function(){var t,a,o,s,u,c,l,d,g,h,m,p,x;return __generator(this,function(C){switch(C.label){case 0:if(t=S.current,!y||!t||_.current||getConfig().isPaused())return[2,!1];s=!0,u=e||{},c=!b[y]||!u.dedupe,l=function(){return!_.current&&y===E.current&&j.current},d=function(){var e=b[y];e&&e[1]===o&&delete b[y]},g={isValidating:!1},h=function(){patchFetchInfo({isValidating:!1}),l()&&H(g)},patchFetchInfo({isValidating:!0}),H({isValidating:!0}),C.label=1;case 1:return C.trys.push([1,3,,4]),c&&(broadcastState(r,y,P.current.data,P.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout(function(){s&&l()&&getConfig().onLoadingSlow(y,n)},n.loadingTimeout),b[y]=[t.apply(void 0,w),getTimestamp()]),a=(x=b[y])[0],o=x[1],[4,a];case 2:if(a=C.sent(),c&&setTimeout(d,n.dedupingInterval),!b[y]||b[y][1]!==o)return c&&l()&&getConfig().onDiscarded(y),[2,!1];if(patchFetchInfo({error:f}),g.error=f,!isUndefined(m=v[y])&&(o<=m[0]||o<=m[1]||0===m[1]))return h(),c&&l()&&getConfig().onDiscarded(y),[2,!1];return i(P.current.data,a)?g.data=P.current.data:g.data=a,i(r.get(y),a)||r.set(y,a),c&&l()&&getConfig().onSuccess(a,y,n),[3,4];case 3:return p=C.sent(),d(),!getConfig().isPaused()&&(patchFetchInfo({error:p}),g.error=p,c&&l()&&(getConfig().onError(p,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||isFunction(n.shouldRetryOnError)&&n.shouldRetryOnError(p))&&isActive()&&getConfig().onErrorRetry(p,y,n,q,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,h(),l()&&c&&broadcastState(r,y,g.data,g.error,!1),[2,!0]}})})},[y]),z=(0,l.useCallback)(internalMutate.bind(f,r,function(){return E.current}),[]);if(k(function(){S.current=t,F.current=n}),k(function(){if(y){var e=y!==E.current,t=q.bind(f,U),n=0,r=subscribeCallback(y,p,function(e,t,n){H(mergeObjects({error:t,isValidating:n},i(P.current.data,e)?f:{data:e}))}),a=subscribeCallback(y,m,function(e){if(0==e){var r=Date.now();getConfig().revalidateOnFocus&&r>n&&isActive()&&(n=r+getConfig().focusThrottleInterval,t())}else if(1==e)getConfig().revalidateOnReconnect&&isActive()&&t();else if(2==e)return q()});return _.current=!1,E.current=y,j.current=!0,e&&H({data:I,error:V,isValidating:M}),shouldRevalidate()&&(isUndefined(I)||O?t():hasWindow()&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(t):setTimeout(t,1)),function(){_.current=!0,r(),a()}}},[y,q]),k(function(){var e;function next(){var t=isFunction(u)?u(I):u;t&&-1!==e&&(e=setTimeout(execute,t))}function execute(){!P.current.error&&(c||getConfig().isVisible())&&(d||getConfig().isOnline())?q(U).then(next):next()}return next(),function(){e&&(clearTimeout(e),e=-1)}},[u,c,d,q]),(0,l.useDebugValue)(I),o&&isUndefined(I)&&y)throw S.current=t,F.current=n,_.current=!1,isUndefined(V)?q(U):V;return{mutate:z,get data(){return L.data=!0,I},get error(){return L.error=!0,V},get isValidating(){return L.isValidating=!0,M}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=mergeObjects(N,(0,l.useContext)(I)),i=isFunction(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],a=i[0],o=i[1],s=mergeConfigs(n,i[2]),u=r,c=s.use;if(c)for(var f=c.length;f-- >0;)u=c[f](u);return u(a,o||s.fetcher,s)});let Avatar=e=>{let{src:t,alt:n,className:r=""}=e;return(0,i.jsx)("img",{className:"relative h-12 w-12 rounded-full  border-white border-opacity-5 "+r,src:t,alt:n,width:48,height:48})},AvatarGrid=e=>{let{className:t}=e,{data:n,isValidating:r}=A("https://api.github.com/repos/common-fate/granted/contributors",e=>fetch(e).then(e=>e.json()),{revalidateIfStale:!1,revalidateOnFocus:!1});return(0,i.jsxs)("div",{className:"flex flex-wrap justify-end md:min-
14h-[240px] "+t,children:[null==n?void 0:n.sort(()=>Math.random()-Math.random()).slice(0,25).map((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(Avatar,{src:e.avatar_url,alt:e.login,className:"aspect-square h-12 w-12 "})},e.id)),(0,i.jsx)("div",{className:"absolute left-0 top-0 -mr-2 h-full w-full  bg-gradient-to-l from-neutral-900"})]})};var community=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{pageTitle:"Community | Common Fate"}),(0,i.jsxs)("div",{className:"lg:my-30 my-24 mx-auto flex max-w-[1920px]  flex-col place-content-around px-4 md:flex-row md:px-12 gap-10 lg:px-16 2xl:px-32\n        ".concat("lg:text-left","\n        "),children:[(0,i.jsxs)("div",{className:"md:w-[506px]",children:[(0,i.jsx)("div",{className:"text-base font-semibold lg:text-lg "}),(0,i.jsx)("div",{className:"mt-2 text-3xl font-light lg:text-5xl",children:"Join the Common Fate community today"}),(0,i.jsx)("div",{className:"mt-4 text-neutral-400 lg:text-lg",children:"Connect with cloud and security experts from around the world."}),(0,i.jsx)("div",{className:"mt-6 flex w-fit flex-wrap gap-4",children:[{icon:u.mU,label:"Slack Community",href:"https://join.slack.com/t/commonfatecommunity/shared_invite/zt-q4m96ypu-_gYlRWD3k5rIsaSsqP7QMg"},{icon:u.fy,label:"GitHub",href:"https://github.com/common-fate"},{icon:u.Zm,label:"Twitter",href:"https://twitter.com/CommonFateTech"}].map((e,t)=>0==t?(0,i.jsx)(o(),{href:e.href,children:(0,i.jsxs)("button",{className:"flex items-center justify-center gap-1 rounded-full bg-blue-300 px-6 py-[10px] text-xs leading-3 tracking-[-0.025px] text-white hover:scale-105 lg:text-sm lg:leading-[14px] xl:px-8 xl:py-[13px]",children:[(0,i.jsx)(e.icon,{className:"inline h-[14px] shrink-0 fill-white"}),(0,i.jsx)("span",{children:e.label})]})},t):(0,i.jsx)(c.Z,{...e},e.href))})]}),(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(AvatarGrid,{className:"my-8  justify-center md:my-0 md:w-[240px] md:justify-end"})})]})]})}},function(e){e.O(0,[774,888,179],function(){return e(e.s=4129)}),_N_E=e.O()}]);

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.