PageSourceSearch

https://community.greentechinsights.com/_next/static/chunks/8845-096deaabcab8b3c9.js

js greentechinsights.com collected 2026-09-26 02:31:06 UTC 11,301 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="71b2ee53-7a49-4603-9271-bc409f3958d8",e._sentryDebugIdIdentifier="sentry-dbid-71b2ee53-7a49-4603-9271-bc409f3958d8")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8845],{98845:function(e,n,t){t.d(n,{Z:function(){return et}});var l=t(52322),r=t(2784),i=t(68654),a=t(12866),o=t(31383),s=t(62234),d=t(82778),c=t(90134),u=t(96623),f=t(46448),h=function(e){return(0,l.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",...e,children:(0,l.jsx)("path",{d:"M5.707 10.707a1 1 0 01-1.414-1.414L10.586 3a2 2 0 012.828 0l6.293 6.293a1 1 0 01-1.414 1.414L13 5.414V21a1 1 0 11-2 0V5.414l-5.293 5.293z",fill:"currentColor"})})},p=t(62764),m=t(54427),x=t(17055),g=t(53663),v=t(67862),b=t(81548),_=t(10199),y=t(39394);function w(){let e=(0,v._)(["\n  fragment FeedChannelList_PublicChannelFragment on Chat_Channel {\n    id\n    name\n    type\n    translatedName\n  }\n"]);return w=function(){return e},e}function C(){let e=(0,v._)(["\n  query FeedChannelList(\n    $asUserId: String!\n    $filters: [Chat_PublicChannelFilterInput!] = []\n  ) {\n    publicChannels: Chat_publicChannels(\n      asUserId: $asUserId\n      filters: $filters\n    ) {\n      channel {\n        ...FeedChannelList_PublicChannelFragment\n      }\n    }\n  }\n  ","\n"]);return C=function(){return e},e}let j=(0,b.Ps)(w()),k=(0,b.Ps)(C(),j),I=e=>{let{asUserId:n,filters:t}=e,{data:l,loading:r,error:i}=(0,_.aM)(k,{variables:{asUserId:n,filters:t}});return{feedChannels:null==l?void 0:l.publicChannels.filter(e=>{let{channel:n}=e;return n.type===y.d$N.FEED}).map(e=>e.channel),loading:r,error:i}};var P=t(86283),Z=t(8307),N=t(56366);let F=a.ZP.div.withConfig({displayName:"feed-channel-list-item__Wrapper",componentId:"sc-92ade4ae-0"})(["display:flex;align-items:center;padding:12px;border-radius:4px;margin-top:4px;margin-bottom:4px;background-color:",";color:",";cursor:pointer;transition:0.1s;"," &:hover{background-color:",";color:",";& > div{background-color:",";}}"],e=>{let{theme:n}=e;return n.colors.surface.base},e=>{let{theme:n}=e;return n.colors.tertiary.base},e=>{let{selected:n}=e;return n&&(0,o.iv)(["background-color:",";color:",";& > div{background-color:",";}"],e=>{let{theme:n}=e;return n.colors.surface.disabled},e=>{let{theme:n}=e;return n.colors.text.base},e=>{let{theme:n}=e;return n.colors.text.base})},e=>{let{theme:n}=e;return n.colors.surface.disabled},e=>{let{theme:n}=e;return n.colors.text.base},e=>{let{theme:n}=e;return n.colors.text.base}),T=a.ZP.p.withConfig({displayName:"feed-channel-list-item__ItemName",componentId:"sc-92ade4ae-1"})(["font-size:14px;font-weight:700;flex-grow:1;"]);function L(){return(0,l.jsx)(F,{children:(0,l.jsx)(N.Z,{size:16})})}var E=function(e){let{name:n,selected:t,...r}=e,{dir:i}=(0,s.Fg)();return n?(0,l.jsxs)(F,{selected:t,...r,children:[(0,l.jsx)(T,{children:n}),"ltr"===i?(0,l.jsx)(P.Z,{}):(0,l.jsx)(Z.Z,{})]}):null},z=t(21545);let B=a.ZP.div.withConfig({displayName:"feed-channel-list-mobile__List",componentId:"sc-b59d80ad-0"})(["position:fixed;z-index:",";bottom:0;left:0;right:0;padding:0 4px;background-color:",";border-radius:",";max-height:90vh;overflow-y:auto;"],e=>{let{theme:n}=e;return n.zIndex.modal+1},e=>{let{theme:n}=e;return n.colors.surface.base},e=>{let{theme:{radius:n}}=e;return"".concat(n.md," ").concat(n.md," 0 0")}),M=(0,a.ZP)(z.Z).withConfig({displayName:"feed-channel-list-mobile__Overlay",componentId:"sc-b59d80ad-1"})(["z-index:1002;"]);var W=function(e){let{feedChannels:n,selectedChannelId:t,renderChannelLink:i=e=>e,disableScrollWhileRendered:a=!0,handleClose:o,...s}=e;return(0,r.useEffect)(()=>{if(a)return document.body.style.overflow="hidden",document.body.style.overscrollBehaviorY="contain",()=>{document.body.style.overflow="auto",document.body.style.overscrollBehaviorY="auto"}},[a]),(0,l.jsx)(M,{children:(0,l.jsx)(B,{...s,children:n.map(e=>{var n;return(0,l.jsx)(r.Fragment,{children:i((0,l.jsx)(E,{name:null!==(n=e.translatedName)&&void 0!==n?n:e.name,selected:e.id===t,onClick:o}),e.id)},e.id)})})})};let D=a.ZP.div.withConfig({displayName:"feed-channel-list__Wrapper",componentId:"sc-484a718e-0"})(["width:100%;padding-left:4px;padding-right:4px;background-color:",";border-radius:",";border:solid 1px ",";"],e=>{let{theme:n}=e;return n.colors.surface.base},e=>{let{theme:n}=e;return n.radius.md},e=>{let{theme:n}=e;return n.colors.outline.base});function O(){return(0,l.jsxs)(D,{children:[(0,l.jsx)(L,{}),(0,l.jsx)(L,{}),(0,l.jsx)(L,{})]})}var V=function(e){let{feedChannels:n,selectedChannelId:t,renderChannelLink:i=e=>e,...a}=e;return(0,l.jsx)(D,{...a,children:n.map(e=>{var n;return(0,l.jsx)(r.Fragment,{children:i((0,l.jsx)(E,{name:null!==(n=e.translatedName)&&void 0!==n?n:e.name,selected:e.id===t}),e.id)},e.id)})})},$=t(33941),S=t(48531),U=t(26850),A=t(16153),R=t(68450),X=t(23147);function Y(e){let{channelName:n,hasChannels:t,handleShowChannels:r,isMobileRedirection:i,mobileOffset:a=0}=e,o=(0,g.T_)();return(0,l.jsx)(X.ZP,{offsetTop:a,withLeftButtonOffset:!i,centerComponent:(0,l.jsx)(X.XJ,{title:null!=n?n:o.feed}),rightComponent:t&&(0,l.jsx)(R.Z,{onClick:r})})}let q=a.ZP.div.withConfig({displayName:"loader__Wrapper",componentId:"sc-8ec29d5f-0"})(["max-width:640px;"]);function J(){return(0,l.jsx)(q,{children:Array.from({length:4}).map((e,n)=>(0,l.jsx)($.ZT,{},n))})}var Q=t(79061);let G=a.ZP.div.withConfig({displayName:"feeds-list-view__FeedPostWrapper",componentId:"sc-f09a30f2-0"})(["width:100%;margin-bottom:16px;"]),H=a.ZP.div.withConfig({displayName:"feeds-list-view__FeedPostListContainer",componentId:"sc-f09a30f2-1"})(["max-width:640px;"]),K=(0,a.ZP)(c.ZP).withConfig({displayName:"feeds-list-view__EmptyViewWrapper",componentId:"sc-f09a30f2-2"})(["max-width:640px;"]),ee=(0,a.ZP)(f.ZP).withConfig({displayName:"feeds-list-view__NewPostsButton",componentId:"sc-f09a30f2-3"})(["position:fixed;z-index:1;top:",";",";transform:translateX(-50%);&:hover{transform:translateX(-50%);}&:hover:active{transform:translateX(-50%);animation:none;}"],e=>{let{stickyOffset:n}=e;return"".concat(n+32,"px")},e=>{let{left:n,right:t,width:l,theme:{dir:r}}=e;return"ltr"===r?(0,o.iv)(["left:",";"],n&&l?"".concat(n+l/2,"px"):"50%"):(0,o.iv)(["right:",";"],t&&l?"".concat(t+l/2,"px"):"50%")});function en(e){let{message:n}=e;return(0,l.jsxs)(K,{children:[(0,l.jsx)(c.aT,{alt:"",src:"https://static.swapcard.com/public/images/a5c5a16850c745309bd930b12fc4a55d.svg"}),(0,l.jsx)(c.rh,{children:n})]})}var et=function(e){let{userId:n,viewId:t,channelId:a,eventId:o,communityId:f,renderChannelLink:v,updateFeedRoute:b,stickyOffset:_=0,isMobileRedirection:w,isInAppWebview:C,mobileOffset:j=0,redirectToChatChannel:k,getFeedPostDetailsPageUrl:P}=e,Z=(0,r.useRef)(null),{person:N,loading:F}=(0,U.M8)({eventId:o,communityId:f}),T=(0,g.T_)(),{mode:L}=(0,s.Fg)(),{leftIsHidden:E}=(0,i.$)(),z=(0,p.M)(),B=function(){let e=(0,x.pT)();return(0,r.useCallback)(n=>{let{viewId:t,eventId:l,channelId:r}=n;e.sendEvent({type:"channel_open",event_id:l,channel:r,event_view_id:t})},[e])}(),M=function(){let e=(0,x.pT)();return(0,r.useCallback)(n=>{let{viewId:t,communityId:l,channelId:r}=n;e.sendEvent({type:"channel_open",channel:r,event_view_id:t,community_id:l})},[e])}(),D=(0,m.Q)(),R=function(){let e=(0,x.pT)();return(0,r.useCallback)(n=>{let{viewId:t,eventId:l,postId:r}=n;e.sendEvent({type:"post_link_open",event_id:l,event_view_id:t,post_link:r})},[e])}(),X=function(){let e=(0,x.pT)();return(0,r.useCallback)(n=>{let{viewId:t,communityId:l,postId:r}=n;e.sendEvent({type:"post_link_open",post_link:r,event_view_id:t,community_id:l})},[e])}(),[q,et]=(0,r.useState)(!1),{feedChannels:el,loading:er,error:ei}=I({asUserId:n,filters:[{externalLink:{type:y.Slm.VIEW,id:t}}]}),{feedChannel:ea,channelPosts:eo,right:es,joined:ed,error:ec,loading:eu,refetch:ef,loadMore:eh,hasMore:ep,newPosts:em,onSeeNewPosts:ex}=(0,Q.s)({asUserId:n,channelId:a}),eg=(0,r.useMemo)(()=>Array.from(new Set((null!=eo?eo:[]).flatMap(e=>e.mentions.map(e=>
1e.userId)))),[eo]),{mentionedPeopleById:ev}=(0,A.b)({eventId:o,userIds:eg});(0,r.useEffect)(()=>{t&&a&&!C&&(o&&z({eventId:o,eventViewId:t}),f&&D(f,t))},[t,o,f,C,z,D]),(0,r.useEffect)(()=>{t&&a&&(o&&B({viewId:t,eventId:o,channelId:a}),f&&M({viewId:t,channelId:a,communityId:f}))},[t,o,a,f,B,M]),(0,r.useEffect)(()=>{!a&&(null==el?void 0:el.length)&&b&&b(el[0].id)},[a,el]);let eb=e=>{o?R({viewId:t,eventId:o,postId:e}):f&&X({viewId:t,communityId:f,postId:e})};return(0,l.jsxs)(l.Fragment,{children:[E&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{channelName:(null==ea?void 0:ea.name)||T.feed,hasChannels:el&&el.length>1,handleShowChannels:()=>et(!0),isMobileRedirection:w,mobileOffset:j}),q&&el&&a&&(0,l.jsx)(W,{feedChannels:el,selectedChannelId:a,renderChannelLink:v,handleClose:()=>et(!1)})]}),(0,l.jsx)(i.Z,{stickyLeft:!0,stickyLeftOffsetTop:_,asideLeft:()=>er&&!el?(0,l.jsx)(O,{}):ei&&!el?(0,l.jsx)(d.Z,{error:ei}):el&&a&&el.length>1?(0,l.jsx)(V,{feedChannels:el,selectedChannelId:a,renderChannelLink:v}):null,main:()=>{var e,t,r;return eu&&!ea||er&&!el?(0,l.jsx)(J,{}):el&&(null==el?void 0:el.length)===0?(0,l.jsxs)(K,{children:[(0,l.jsx)(c.aT,{alt:"",src:"dark"===L?"https://static.swapcard.com/public/images/61dc747c9e7547e1847afd5ac91fa01a.svg":"https://static.swapcard.com/public/images/9e8136ce0e694e7db8073df132d96055.svg"}),(0,l.jsx)(c.rh,{children:T.noContentAvailable})]}):F&&!N?(0,l.jsx)(J,{}):ec&&!ea?(0,l.jsx)(d.Z,{error:ec}):!ea&&a?(0,l.jsx)(en,{message:T.noContentAvailable}):ea&&N&&a?(0,l.jsxs)(H,{ref:Z,children:[em&&(0,l.jsx)(ee,{stickyOffset:_,left:null==Z?void 0:null===(e=Z.current)||void 0===e?void 0:e.getBoundingClientRect().left,right:null==Z?void 0:null===(t=Z.current)||void 0===t?void 0:t.getBoundingClientRect().right,width:null==Z?void 0:null===(r=Z.current)||void 0===r?void 0:r.clientWidth,icon:(0,l.jsx)(h,{}),onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),ex()},children:T.newPosts}),(null==es?void 0:es.canPost)&&(0,l.jsx)(S.Z,{asUserId:n,person:N,channelId:ea.id,channelName:ea.name,eventId:o,joined:ed,refetch:async()=>{await ef({asUserId:n,limit:((null==eo?void 0:eo.length)||0)+1})}}),eo&&eo.length?(0,l.jsx)(u.Z,{dataLength:eo.length,hasNextPage:ep,loadMore:eh,loader:(0,l.jsx)(J,{}),children:eo.map(e=>(0,l.jsx)(G,{children:(0,l.jsx)($.ZP,{post:e,person:N,channelId:a,userId:n,eventId:o,mentionedPeopleById:ev,joined:null!=ed&&ed,right:es,refetch:async()=>await ef({asUserId:n,limit:eo.length}),handlePostLinkClickTrack:eb,redirectToChatChannel:k,getFeedPostDetailsPageUrl:P})},e.id))}):(0,l.jsx)(en,{message:T.emptyFeedViewTitle})]}):null}})]})}},21545:function(e,n,t){var l=t(31383),r=t(12866),i=t(83106),a=t(29017);let o=(0,l.F4)(["from{opacity:0;}to{opacity:1;}"]),s=r.ZP.div.withConfig({displayName:"overlay__Overlay",componentId:"sc-d886f5ff-0"})(["position:fixed;z-index:",";top:0;left:0;right:0;bottom:0;backdrop-filter:blur(5px);background-color:",";animation:"," 300ms ease-in-out;"],e=>{let{theme:{zIndex:n}}=e;return n.modal-1},e=>{let{layout:n,theme:{palette:t,mode:l}}=e;return"dark"===n?"rgba(0, 0, 0, 0.8)":(0,i.Z)(t.black,(0,a.eI)(l))},o);n.Z=s}}]);

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.