"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8724],{4671:function(e,s,l){l.d(s,{V:function(){return d},u:function(){return c}});var a=l(24246),t=l(79894),r=l.n(t),i=l(92859),n=l(10345);let c=e=>{let{gallery:s,maxHeight:l}=e,t=s.user.username;return(0,a.jsx)(r(),{href:{pathname:"/[username]/[gallery]",query:{username:t,gallery:s.name.toLowerCase()}},children:(0,a.jsxs)("div",{className:"cursor-pointer overflow-hidden rounded-sm border border-gray-200 bg-white dark:border-darkmode-secondary dark:bg-darkmode-secondary",children:[(0,a.jsx)("div",{style:{maxHeight:l?"".concat(l,"px"):"500px"},className:"relative overflow-hidden",children:(0,a.jsx)(n.xK,{sections:s.sections,interactive:!1,embedded:!0})}),(0,a.jsx)("div",{className:"px-4 sm:px-6 sm:py-4",children:(0,a.jsxs)("span",{className:"space-x-2",children:[(0,a.jsx)("span",{className:"text-xl font-medium leading-6",children:s.name}),(0,a.jsx)("span",{children:"\xb7"}),(0,a.jsx)(r(),{href:{pathname:"/[username]",query:{username:t}},children:(0,a.jsxs)("span",{className:"text-sm hover:underline",children:["@",t]})})]})})]})},s.id)},d=e=>{var s;let{galleryName:l,usernameOrAddress:t}=e,{data:c}=i.SX.gallery.byName.useQuery({usernameOrAddress:t,name:l});return c?((null===(s=c.sections[0])||void 0===s?void 0:s.freestyleRows)&&(c.sections[0].freestyleRows=Math.min(c.sections[0].freestyleItems.map(e=>e.endRow).reduce((e,s)=>e<s?s:e,0)-1,60)),(0,a.jsx)(r(),{href:{pathname:"/[username]/[gallery]",query:{username:t,gallery:c.name.toLowerCase()}},className:"cursor-auto",children:(0,a.jsxs)("div",{className:"aspect-square cursor-pointer overflow-hidden rounded-sm border border-gray-100 bg-white pt-4 shadow-lg",children:[(0,a.jsx)("div",{className:"flex flex-col space-y-2 px-4 pb-3 sm:px-6",children:(0,a.jsx)("span",{className:"text-xl font-medium leading-6 text-gray-900",children:c.name})}),(0,a.jsxs)("div",{className:"relative overflow-hidden",children:[(0,a.jsx)(n.xK,{sections:c.sections,interactive:!1,embedded:!0}),(0,a.jsx)("div",{className:"absolute inset-0 bottom-0 top-0 z-[101] h-full w-full"})]})]})},c.id)):null}},89264:function(e,s,l){l.d(s,{A:function(){return er}});var a=l(24246),t=l(12663),r=l(95659),i=l(43467),n=l(74913),c=l(20035),d=l(90178),o=l(9775),u=l(70700),m=l(73643),h=l(20075),x=l(34805),f=l(74307),p=l(7177),v=l(96086),g=l(63662),j=l(80129),b=l.n(j),y=l(27378),N=l(18256),w=l(81459),S=l(69992),k=l(92859),C=l(26885),A=l(27690),E=l(19655),H=l(78976),L=l(25803),z=l(64115),T=l(47952),P=l(77895),q=l(89542),I=l(17672),M=l(86677),X=l(72105),O=l(70919),R=l(33068),D=l(13702);let U=e=>{let{initialCollectionSlugs:s=[],selectedCollectionSlugs:l,setSelectedCollectionSlugs:t,selectedCreators:r,setSelectedCreators:i,searchQuery:c,setSearchQuery:d}=e,o=k.SX.search.creators.useQuery({query:null!=c?c:"",selectedCollectionSlugs:s}),u=(0,y.useMemo)(()=>{var e;return null!==(e=o.data)&&void 0!==e?e:[]},[o.data]);(0,y.useEffect)(()=>{let e=[];for(let s of u)s.collections.some(e=>l.includes(e.slug))&&!r.find(e=>e.user.id===s.user.id)&&e.push(s);i([...r,...e])},[o.isFetched]);let m=e=>{let s=e.user.id;r.find(e=>e.user.id===s)?(i(r.filter(e=>e.user.id!==s)),t(l.filter(s=>!e.collections.map(e=>e.slug).includes(s)))):(i([...r,e]),t([...l,...e.collections.map(e=>e.slug)]))},h=()=>{t([]),i([]),d("")},x=(e,s)=>{let a=e.collections.filter(e=>e.slug!==s).map(e=>e.slug),n=[];for(let e of a)if(l.includes(e))for(let e of r)e.collections.filter(e=>l.includes(e.slug)).every(e=>a.includes(e.slug))&&n.push(e.user.id);i(r.filter(e=>!n.includes(e.user.id))),t(l.filter(e=>!a.includes(e)))},f=e=>{if(l.includes(e)){let s=[];for(let a of r)if(1===a.collections.filter(e=>l.includes(e.slug)).length){let t=a.collections.find(e=>l.includes(e.slug));(null==t?void 0:t.slug)===e&&s.push(a.user.id)}i(r.filter(e=>!s.includes(e.user.id))),t(l.filter(s=>s!==e))}else t([...l,e])},p=(0,M.useRouter)(),v=e=>{let{pathname:s,query:l}=p,a=new URLSearchParams(l);a.delete(e),p.replace({pathname:s,query:a.toString()},void 0,{shallow:!0})};return(0,y.useEffect)(()=>{if(0===l.length){p.query.q&&v("q");return}let e=(0,D.xt)(l);p.push({query:{...p.query,q:e}},void 0,{shallow:!0})},[l]),r.forEach(e=>{u.find(s=>s.user.id===e.user.id)||u.push(e)}),u.sort((e,s)=>{let l=void 0!==r.find(s=>s.user.id===e.user.id),a=void 0!==r.find(e=>e.user.id===s.user.id);return l&&!a?-1:!l&&a?1:0}),(0,a.jsx)(n.kC,{gap:"3",className:"grow overflow-y-auto overflow-x-visible",children:(0,a.jsxs)(n.xu,{pr:"2",pb:"4",flexShrink:"1",className:"w-full",children:[(0!==r.length||0!==l.length)&&(0,a.jsx)(L.z,{variant:"ghost",size:"full",className:"mb-2",onClick:()=>h(),children:"Clear selections"}),o.isLoading&&(0,a.jsx)("div",{className:"mx-auto my-2",children:(0,a.jsx)(n.$j,{className:"mx-auto"})}),u.map((e,s)=>{var t,i;let d=e.user,o=!!r.find(e=>e.user.id===d.id),h=!!r.find(e=>{var l;return e.user.id===(null===(l=u[s-1])||void 0===l?void 0:l.user.id)}),p=!o&&h,v=(null===(t=r.find(e=>e.user.id===d.id))||void 0===t?void 0:t.collections.every(e=>l.includes(e.slug)))&&e.collections.length>2;return(0,a.jsxs)(n.xu,{mb:"1",children:[p&&(0,a.jsx)(n.xu,{m:"4",className:"border-b border-gray-300 dark:border-gray-700"}),(0,a.jsxs)(n.kC,{align:"center",gap:"3",py:"1",pl:"2",pr:"3",ml:"-2",className:"dark:hover:bg-darkmode-secondary group cursor-pointer rounded-sm transition-colors duration-100 hover:bg-gray-100",onClick:()=>m(e),children:[(0,a.jsx)(n.kC,{align:"center",children:(0,a.jsx)(O.r,{href:R.Hb.profile.home(d.username),children:(0,a.jsx)(I.q,{asset:d.pfp,size:"medium",lightbox:!1,fallbackColorSeed:d.id,className:"h-10 w-10",ringClasses:""})})}),(0,a.jsxs)(n.kC,{justify:"between",flexGrow:"1",className:"overflow-hidden",children:[(0,a.jsx)(n.xu,{className:"overflow-hidden",children:(0,a.jsx)(n.X6,{size:"2",className:"line-clamp-1",children:null!==(i=d.name)&&void 0!==i?i:d.username})}),(0,a.jsx)(n.kC,{gap:"4",align:"center",children:(0,a.jsx)(X.X,{checked:o,className:"h-5 w-5 dark:group-hover:border-white"})})]})]}),(!!c&&c.length>0||o)&&(0,a.jsx)(n.xu,{className:"pl-16 pt-0.5",children:e.collections.map(s=>(0,a.jsxs)(n.kC,{gap:"4",p:"1",className:"dark:hover:bg-darkmode-secondary group -ml-1 -mt-2 flex cursor-pointer flex-row items-center break-all transition-colors duration-100 hover:bg-gray-100",onClick:()=>{v?x(e,s.slug):f(s.slug)},children:[(0,a.jsx)(n.xv,{size:"1",className:"line-clamp-2",children:s.name}),(0,a.jsxs)(n.kC,{align:"center",children:[l.includes(s.slug)&&(0,a.jsx)(q.Z,{className:"h-5 w-5 pl-2"}),v&&(0,a.jsx)("span",{className:"text-muted-foreground ml-2 hidden text-xs group-hover:block",children:"(only)"})]})]},s.slug))})]},d.id)})]})})};var F=l(29339),Q=l(11875),V=l(48425),$=l(95472),Z=l(53815),_=l(51136),B=l(70376);let G=(e,s)=>{switch(e){case B.gH.ETHEREUM:return"https://etherscan.io/tx/".concat(s);case B.gH.SHAPE:return"https://shapescan.xyz/tx/".concat(s);case B.gH.BASE:return"https://basescan.org/tx/".concat(s);case B.gH.TEZOS:return"https://tzkt.io/".concat(s);default:return}};var Y=l(47798),J=l(80489),W=l(26824);let K={className:"size-7 flex cursor-pointer -mx-[2px] p-1 bg-background border rounded-full opacity-90 shadow-sm hover:z-elevated text-foreground"},ee=e=>{let{chain:s,className:l=""}=e;switch(s){case B.$O.ETHEREUM:return(0,a.jsx)(V.mc,{className:(0,S.cn)(K.className,l)});case B.$O.TEZOS:return(0,a.jsx)(V.f$,{className:(0,S.cn)(K.className,l)});case B.$O.BASE:return(0,a.jsx)(V.jo,{className:(0,S.cn)(K.className,l)});case B.$O.SHAPE:return(0,a.jsx)(V.ci,{className:(0,S.cn)(K.className,l)})}},es=e=>{let{userActivity:s}=e,l=s.filter(e=>"post"!==e.type);return(0,a.jsxs)(n.iA.fC,{variant:"ghost",className:"rounded-tl-sm rounded-tr-sm",children:[(0,a.jsx)(n.iA.h4,{className:"hidden md:table-header-group",children:(0,a.jsx)(n.iA.X2,{children:[{field:"name",headerName:"Item",width:"33%"},{field:"action",headerName:"Activity",width:"18%"},{field:"from",headerName:"From",width:"16%",className:"hidden md:table-cell"},{field:"to",headerName:"To",width:"16%",className:"hidden md:table-cell"},{field:"date",headerName:"Time",width:"5%"}].map(e=>{var s;return(0,a.jsx)(n.iA.Ni,{width:e.width,className:null!==(s=null==e?void 0:e.className)&&void 0!==s?s:"",children:e.headerName},e.field)})})}),(0,a.jsx)(n.iA.h4,{className:"md:hidden",children:(0,a.jsx)(n.iA.X2,{children:(0,a.jsx)(n.iA.Ni,{colSpan:2,children:"Items"})})}),(0,a.jsx)(n.iA.uT,{children:l.map(e=>(0,a.jsx)(el,{activity:e},e.id))})]})},el=e=>{var s,l,t;let{activity:r}=e,i=r.asset,c=C.HU.ASSET,{asset:d}=r,o={enabled:!!(null==d?void 0:d.id)},{data:u}=k.SX.collection.byAsset.useQuery({id:null!==(s=null==d?void 0:d.id)&&void 0!==s?s:""},o),{data:m}=k.SX.poster.byAssetId.useQuery({assetId:null!==(l=null==d?void 0:d.id)&&void 0!==l?l:""},o),x=(null==m?void 0:m.creator)?[m.creator]:null==u?void 0:u.artists;return(null==d?void 0:d.blockchain)?(0,a.jsxs)(n.iA.X2,{align:"center",className:"max-w-full",children:[(0,a.jsx)(n.iA.bL,{className:"overflow-hidden",children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(Y.Sb,{asset:d,mode:"preview",className:"h-[60px] max-w-[60px] shrink-0 grow object-contain md:h-[60px] md:max-w-[60px]",width:100,height:100}),(0,a.jsxs)("div",{className:"shrink",children:[(0,a.jsx)("div",{className:"line-clamp-1 break-all md:line-clamp-2 md:break-normal [&>a]:inline",children:(0,a.jsx)(h.yQ,{entity:{type:c,value:i}})}),(0,a.jsx)("div",{className:"line-clamp-1 break-all text-sm [&_a]:inline",children:x&&x.length>0&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(F.D,{className:"inline",components:x.map(e=>{var s;return(0,a.jsx)(Q.W,{user:e,as:"span",className:"inline",children:(0,a.jsx)(O.r,{href:R.Hb.profile.home(e.username),children:(0,J.Tg)(null!==(s=e.name)&&void 0!==s?s:e.username)})},e.id)})})})})]})]})}),(0,a.jsx)(n.iA.bL,{className:"hidden md:table-cell",children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(ee,{chain:d.blockchain}),(0,a.jsxs)("div",{className:"inline-flex flex-col",title:"".concat(r.justification.toLocaleLowerCase()," on ").concat(d.blockchain),children:[(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:r.action}),(0,a.jsx)("span",{className:"text-md font-bold",children:r.priceInfo})]})]})}),(0,a.jsx)(n.iA.bL,{className:"hidden overflow-hidden md:table-cell",children:(0,a.jsx)("div",{className:"line-clamp-1 break-all",children:r.fromAddress&&(0,a.jsx)(Z.G,{usernameOrAddress:r.fromAddress,noAtSymbol:!0,showPfp:!0})})}),(0,a.jsx)(n.iA.bL,{className:"hidden overflow-hidden md:table-cell",children:(0,a.jsx)("div",{className:"line-clamp-1 break-all",children:r.toAddress&&(0,a.jsx)(Z.G,{usernameOrAddress:r.toAddress,noAtSymbol:!0,showPfp:!0})})}),(0,a.jsx)(n.iA.bL,{align:"center",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"inline-flex flex-col text-sm md:hidden",title:"".concat(r.justification.toLocaleLowerCase()," on ").concat(d.blockchain),children:[(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:r.action}),(0,a.jsx)("span",{className:"text-md font-bold",children:r.priceInfo})]}),(0,a.jsxs)("div",{children:[!r.txHash&&(0,a.jsx)("time",{dateTime:r.timestamp.toISOString(),className:"text-muted-foreground min-w-fit text-sm",title:(0,_.default)(r.timestamp,"dd-LLL-yyyy HH:mm"),children:(0,W.UC)(r.timestamp,!1)}),r.txHash&&(0,a.jsx)($.dL,{href:null!==(t=G(d.blockchain.toUpperCase(),null==r?void 0:r.txHash))&&void 0!==t?t:"",children:(0,a.jsx)("time",{dateTime:r.timestamp.toISOString(),className:"text-muted-foreground min-w-fit text-sm",title:(0,_.default)(r.timestamp,"dd-LLL-yyyy HH:mm"),children:(0,W.UC)(r.timestamp,!1)})})]})]})})]}):null},ea=[{value:"posts",label:"Posts"},{value:"sale",label:"Sales"},{value:"mint",label:"Mints"},{value:"ask",label:"Listings"},{value:"transfer",label:"Transfers"}],et=b().stringify({collections:[]},{encode:!1}),er=e=>{var s;let{userId:l,hideHeader:o=!1}=e,[u,m]=(0,y.useState)(["sale","mint","ask"]),[h,j]=(0,y.useState)("table"),[C,T]=(0,y.useState)(!0),[q,I]=(0,y.useState)([]),M=(0,P.a)("isBelowMd"),X=(0,H.b9)(E.dP),{isFiltered:O,selectedChains:R}=(0,H.Dv)(E.Cn),[D,F]=(0,y.useState)(!1),[Q,V]=(0,y.useState)(!1),[$,Z]=(0,y.useState)(null),_=(0,v.N)($,500),B=(0,g.useSearchParams)(),[G,Y]=(0,y.useState)([]),[J,W]=(0,y.useState)(!1),K=(0,y.useMemo)(()=>{var e;let s=B.get("q"),l=null!==(e=b().parse(null!=s?s:et,{arrayLimit:1e3}).collections)&&void 0!==e?e:[];return J||(Y(l),W(!0)),l},[B]),[ee,el]=(0,y.useState)(K),{data:er,hasNextPage:ec,isFetchingNextPage:ed,fetchNextPage:eo,isLoading:eu}=k.SX.user.activity.useInfiniteQuery({userId:l,types:u,selectedCollectionSlugs:ee,chains:R,filterOutAirdrops:D},{getNextPageParam:e=>e.nextCursor,enabled:!!l}),em=(0,y.useCallback)(()=>{ec&&!ed&&eo()},[ec,ed,eo]),[eh,ex]=(0,y.useState)([]),ef=e=>u.includes(e),ep=e=>{m(s=>s.includes(e)?s.filter(s=>s!==e):[...s,e])};(0,y.useEffect)(()=>{ee.length&&ef("posts")&&m(e=>e.filter(e=>"posts"!==e))},[ee]),(0,y.useEffect)(()=>{"table"===h?(m(e=>e.filter(e=>"posts"!==e)),I(["posts"])):I([])},[h]),(0,y.useEffect)(()=>{!Q&&M&&C&&T(!1),V(!0)},[M,Q,C]);let ev=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.X6,{size:"4",children:"Events"}),(0,a.jsxs)("div",{className:"flex flex-col flex-wrap items-stretch justify-stretch gap-2",children:[ea.map(e=>(0,a.jsx)(en,{isEnabled:ef(e.value),isDisabled:q.includes(e.value),setEnabled:()=>ep(e.value),activityType:e},e.value)),(0,a.jsx)(en,{isEnabled:D,isDisabled:!1,setEnabled:()=>F(!D),activityType:{value:"airdrops",label:"Hide airdrops"}})]}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex content-center items-center justify-between",children:[(0,a.jsx)(n.X6,{size:"4",children:"Chains"}),(0,a.jsxs)(z.J2,{children:[(0,a.jsx)(z.xo,{children:(0,a.jsx)(A.zE,{})}),(0,a.jsxs)(z.yk,{className:"w-[150px] space-y-3",children:[(0,a.jsx)("div",{className:"flex justify-start",children:(0,a.jsx)(L.z,{onClick:()=>{X()},variant:"link",className:"text-xs text-gray-500 dark:text-gray-200",disabled:!O,children:"Select all"})}),(0,a.jsx)(A.iT,{}),(0,a.jsx)("p",{className:"text-xs",children:"Posts aren't affected by this filter."})]})]})]})}),(0,a.jsx)(w.II,{placeholder:(0,p.p)(),className:"border-input placeholder:text-muted-foreground dark:border-darkmode-secondary w-full border py-2 text-sm",onChange:e=>Z(e.target.value),icon:i._Ve,iconPosition:"start",value:null!=$?$:"",handleClear:()=>Z("")}),(0,a.jsx)(U,{initialCollectionSlugs:G,selectedCollectionSlugs:ee,setSelectedCollectionSlugs:el,selectedCreators:eh,setSelectedCreators:ex,searchQuery:_,setSearchQuery:Z})]}),eg=null!==(s=null==er?void 0:er.pages.flatMap(e=>e.activities))&&void 0!==s?s:[];return(0,a.jsxs)(f.$,{children:[!o&&(0,a.jsx)(f.O,{children:eg.length>0?"Activity":"No activity yet"}),(0,a.jsxs)("div",{className:"z-elevated dark:bg-brand sticky top-[var(--header-height)] flex content-center justify-between gap-4 bg-white py-2",children:[(0,a.jsx)(L.z,{variant:"ghost",className:(0,S.cn)("items-center gap-1 p-2 sm:flex",C&&"dark:bg-darkmode-secondary bg-gray-100"),onClick:()=>T(!C),children:(0,a.jsx)(t.Z,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,a.jsx)("span",{children:(0,a.jsx)(i.UDV,{className:"h-4 w-4"})}),(0,a.jsx)(d.Z,{enabled:"table"===h,setEnabled:()=>j("table"===h?"card":"table")}),(0,a.jsx)("span",{children:(0,a.jsx)(i.$eq,{className:"h-4 w-4"})})]}),(0,a.jsx)(N.Vq,{open:M&&C,onOpenChange:e=>T(e),children:(0,a.jsx)(N.cZ,{className:"max-h-[70dvh] max-w-[100vw] p-0",showClose:!1,onOpenAutoFocus:e=>e.preventDefault(),"aria-describedby":"collection filter dialog",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"max-w-[100vw]",children:[(0,a.jsx)(r.$N,{className:"mb-2 p-4 pb-0 text-center font-bold",children:"Filter"}),(0,a.jsx)("div",{className:"relative max-w-full space-y-4 px-4 sm:min-w-[500px]",children:ev()})]}),(0,a.jsx)("div",{className:"z-elevated dark:bg-brand sticky bottom-0 left-0 right-0 flex items-center justify-end bg-white p-4",children:(0,a.jsx)(L.z,{className:"w-full",variant:"outline",onClick:()=>T(!1),children:"Done"})})]})})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-10 sm:flex-row",children:[!M&&C&&(0,a.jsx)("div",{className:"relative flex w-[350px] max-w-full flex-col space-y-4 sm:sticky md:max-h-[calc(90vh-40px)] lg:top-[120px] lg:min-w-0",children:ev()}),(0,a.jsx)("div",{className:(0,S.cn)("w-full"),children:(0,a.jsxs)("div",{className:(0,S.cn)("table"===h?"w-full":"mx-auto flex w-[min(36rem,100%)] flex-col gap-8 sm:gap-12"),children:["card"===h&&eg.map(e=>(0,a.jsx)(ei,{item:e},e.id)),"table"===h&&(0,a.jsx)(es,{userActivity:eg}),(ed||eu)&&(0,a.jsx)(x.$,{className:"mx-auto my-2"}),!(ed||eu)&&eg.length<1&&(0,a.jsx)("div",{className:"my-2 flex justify-center",children:"No activity with current filters. Try changing them."}),(0,a.jsx)(c.p,{onInView:em,margin:3e3})]})})]})]})},ei=e=>{var s,l,t;let{item:r}=e,i="post"===r.type,n=i?r.post:r.asset,c=i?C.HU.POST:C.HU.ASSET,d=null==n?void 0:n.id.toString(),{data:x}=k.SX.comments.countForEntity.useQuery({entityId:d,entityType:c}),{data:f,hasNextPage:p,isFetchingNextPage:v,fetchNextPage:g}=k.SX.comments.forEntity.useInfiniteQuery({entityType:c,entityId:d},{getNextPageParam:e=>e.nextCursor}),j=null!==(t=null==f?void 0:f.pages.flatMap(e=>e.comments))&&void 0!==t?t:[],b=(0,y.useCallback)(()=>{p&&!v&&g()},[p,v,g]),N={type:c,value:n},w=i?null===(l=r.post)||void 0===l?void 0:null===(s=l.entity)||void 0===s?void 0:s.value:void 0;return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(h.h4,{user:i&&r.post.isRepost&&(null==w?void 0:w.user)?w.user:r.user,reason:r.justification,timestamp:r.timestamp,entity:N}),(0,a.jsx)(m.N,{entity:N}),(0,a.jsx)(u.H,{comments:j,inline:!0,entity:N,count:null==x?void 0:x.count,loadMore:b}),(0,a.jsx)(o._,{isInline:!0,entityId:d,entityType:c})]})},en=e=>{let{activityType:s,isEnabled:l,isDisabled:t,setEnabled:r}=e,i=(0,y.useCallback)(()=>(0,a.jsx)(d.Z,{enabled:l,setEnabled:r,className:(0,S.cn)("justify-between",t&&"text-muted cursor-not-allowed"),label:s.label,disabled:t},s.value),[s.label,s.value,t,l,r]);return t?(0,a.jsxs)(T.u,{delayDuration:300,children:[(0,a.jsx)(T.aJ,{asChild:!0,children:(0,a.jsx)("div",{children:i()})}),(0,a.jsx)(T._v,{children:(0,a.jsx)("p",{children:"Posts available only for inline display mode"})})]}):i()}},7177:function(e,s,l){l.d(s,{p:function(){return a}});let a=()=>{let e=new Date().getDay(),s=Number(new Date)/1e3/3600,l=['Search e.g. "Tyler Hobbs" or "Fidenza"','Search e.g. "XCOPY" or "Grifters"','Search e.g. "Golid" or "Archetypes"','Search e.g. "Dmitri Cherniak" or "Ringers"','Search e.g. "Emily Xie" or "Memories"','Search e.g. "Sam Spratt" or "Skulls of Luci"','Search e.g. "Aaron Penne" or "Apparitions"','Search e.g. "Matt DesLauriers" or "Meridians"','Search e.g. "Refik" or "Machine Hallucinations"','Search e.g. "Claire Silver" or "paracosm"','Search e.g. "Brinkman" or "Nimbuds"','Search e.g. "Grant Yun" or "California"','Search e.g. "ack" or "The Great Color Study"','Search e.g. "Josie Bellini" or "CyberBrokers"','Search e.g. "diewiththemostlikes" or "Meat"','Search e.g. "Snowfro" or "Squiggles"'];return l[Math.floor(s+e)%l.length]}},84596:function(e,s,l){l.d(s,{mQ:function(){return r.fC},nU:function(){return o},dr:function(){return c},SP:function(){return d}});var a=l(24246),t=l(43467),r=l(64339),i=l(27378),n=l(69992);let c=e=>{let{className:s,children:l,...c}=e,{isScrollable:d,ref:o}=function(e){let[s,l]=(0,i.useState)(!1),a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{function s(s){let{scrollLeft:a,scrollWidth:t,clientWidth:r}=s,{scrollTop:i,scrollHeight:n,clientHeight:c}=s,d=s.scrollWidth>s.clientWidth&&a+r<t,o=s.scrollHeight>s.clientHeight&&i+c<n;l("horizontal"===e?d:o)}let t=null==a?void 0:a.current;function r(){t&&s(t)}return t&&(s(t),t.addEventListener("scroll",r)),()=>{null==t||t.removeEventListener("scroll",r)}},[e]),{isScrollable:s,ref:a}}("horizontal");return(0,a.jsxs)(r.aV,{ref:o,className:(0,n.cn)("scrollbar-none relative inline-flex w-full items-center justify-start gap-6 overflow-x-auto pb-2",s),...c,children:[l,d?(0,a.jsx)(t.XCv,{className:(0,n.cn)("text-foreground sticky -right-4 h-5 w-5 shrink-0 transition-opacity duration-150 sm:right-0",d?"opacity-100":"opacity-0")}):null]})};c.displayName=r.aV.displayName;let d=(0,i.forwardRef)((e,s)=>{let{className:l,...t}=e;return(0,a.jsx)(r.xz,{className:(0,n.cn)("text-muted-foreground ring-ring ring-offset-background data-[state=active]:bg-background data-[state=active]:text-foreground hover:bg-accent focus-visible:ring-ring flex min-w-fit items-center justify-center px-3 py-1 font-normal underline-offset-8 outline-none ring-offset-2 transition-colors duration-300 hover:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:underline",l),...t,ref:s})});d.displayName=r.xz.displayName;let o=(0,i.forwardRef)((e,s)=>{let{className:l,...t}=e;return(0,a.jsx)(r.VY,{className:(0,n.cn)("data-[state=active]:animate-slideUpAndFade px-0",l),...t,ref:s})});o.displayName=r.VY.displayName},12663:function(e,s,l){var a=l(27378);let t=a.forwardRef(function(e,s){let{title:l,titleId:t,...r}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),l?a.createElement("title",{id:t},l):null,a.createElement("path",{fillRule:"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z",clipRule:"evenodd"}))});s.Z=t}}]);