PageSourceSearch

https://glass.xyz/_next/static/chunks/1190.64a3778f5b431c63.js

js glass.xyz collected 2026-10-03 23:45:08 UTC 42,574 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1190],{31190:function(e,t,i){i.r(t),i.d(t,{BottomSpacer:function(){return vt},DESCRIPTION_PROCESSING_CONFIG:function(){return Tt},DescExpand:function(){return Ot},Description:function(){return Mt},Details:function(){return ht},LinkSpan:function(){return zt},OuterDiv:function(){return mt},Title:function(){return xt},default:function(){return ut},useShowExpand:function(){return At}});var n=i(16835),o=i(85444),r=i(67294),a=i(63457),s=i(22132),c=i(75934),d=i.n(c),l=i(30381),p=i.n(l),f=i(72071),u=i(59920),m=i(71920),h=i(10767),x=i(38350),v=i(85272),g=i(41664),w=i.n(g),y=i(80222),b=i(64058),j=i(59499),_=i(77314),C=i(92553),I=i(41423),Z=i(49699),k=i(27812),P=i(50029),D=i(87794),N=i.n(D),S=i(246),M=i.n(S),z=i(2786),O=i(42285),E=i(86824),T=i(85893);function L(e){return A.apply(this,arguments)}function A(){return(A=(0,P.Z)(N().mark((function e(t){var i,n;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(new TextEncoder).encode(t),e.next=3,crypto.subtle.digest("SHA-256",i);case 3:return n=e.sent,e.abrupt("return",Array.from(new Uint8Array(n)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var V=function(e){var t=e.radius,i=e.seed,o=r.useState("rgba(0,0,0,0.0)"),a=(0,n.Z)(o,2),s=a[0],c=a[1],d=r.useState("rgba(0,0,0,0.0)"),l=(0,n.Z)(d,2),p=l[0],f=l[1];return(0,r.useEffect)((function(){L(i).then((function(e){c("hsl(".concat(e[0]/256*360,"deg, ",100,"%, ").concat(e[1]/256/4*3*100,"%)")),f("hsl(".concat(e[2]/256*360,"deg, ",100,"%, ").concat(3*e[3]/256/4*100,"%)"))}))}),[i]),(0,T.jsx)("div",{style:{height:t,width:t,borderRadius:"50%",background:"radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%), linear-gradient(135deg, ".concat(s,", ").concat(p,")")}})},R=(o.ZP.img.withConfig({displayName:"ProfileImage__ImageContainer",componentId:"sc-1kt38mr-0"})(["width:",";height:",";border-radius:50%;object-fit:cover;cursor:pointer;z-index:2;"],(function(e){var t=e.size;return"".concat(t,"px")}),(function(e){var t=e.size;return"".concat(t,"px")})),function(e){var t=e.item,i=e.size;if(!t)return null;var n=t.id;return(0,T.jsx)(V,{seed:n,radius:i})}),q=i(58365),B=i(83559),H=i(13457),W=o.ZP.div.withConfig({displayName:"SkeletonItem__ItemDiv",componentId:"sc-1x7scsp-0"})(["display:flex;flex-direction:column;margin:10px 0 10px 0;width:calc(100% - 2px);background:linear-gradient(rgb(35,35,35),rgb(20,20,20));border-color:#323232;border-width:1px;border-style:solid;border-radius:15px;"]),F=o.ZP.div.withConfig({displayName:"SkeletonItem__DetailsDiv",componentId:"sc-1x7scsp-1"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin:10px;z-index:1;"]),Y=o.ZP.div.withConfig({displayName:"SkeletonItem__HeaderDiv",componentId:"sc-1x7scsp-2"})(["display:flex;flex-direction:column;width:100%;margin:0 8px;"]),U=o.ZP.div.withConfig({displayName:"SkeletonItem__VideoTitle",componentId:"sc-1x7scsp-3"})(["color:white;text-align:left;font-weight:700;font-size:22px;white-space:nowrap;overflow:hidden;display:block;text-overflow:ellipsis;"]),G=o.ZP.div.withConfig({displayName:"SkeletonItem__Subtitle",componentId:"sc-1x7scsp-4"})(["color:white;font-weight:500;font-size:1.1rem;"]),J=o.ZP.div.withConfig({displayName:"SkeletonItem__CreatorDiv",componentId:"sc-1x7scsp-5"})(["display:inline-flex;align-items:center;flex-direction:row;border-radius:30px;height:24px;background:#444;width:fit-content;padding:8px;margin-top:8px;margin-bottom:8px;"]),$=(0,B.A)({palette:{type:"dark"}}),X=function(){return(0,T.jsx)(H.Z,{theme:$,children:(0,T.jsx)(W,{children:(0,T.jsxs)(F,{children:[(0,T.jsx)(J,{children:(0,T.jsx)(q.Z,{animation:"pulse",variant:"circle",width:"25px",height:"25px"})}),(0,T.jsxs)(Y,{children:[(0,T.jsx)(G,{children:(0,T.jsx)(q.Z,{animation:"pulse",variant:"text",width:"50px"})}),(0,T.jsx)(U,{children:(0,T.jsx)(q.Z,{animation:"wave",variant:"text"})})]}),(0,T.jsxs)(G,{children:[(0,T.jsx)(q.Z,{animation:"pulse",variant:"text",width:"50px"}),(0,T.jsx)(q.Z,{animation:"pulse",variant:"text",width:"50px"})]})]})})})},K=i(72750),Q=i(67628),ee=i(3765),te=i(14886),ie=o.ZP.div.withConfig({displayName:"ActivityItem__OuterDiv",componentId:"sc-nntdsf-0"})(["width:100%;display:flex;flex-direction:column;margin-top:16px;"]),ne=o.ZP.div.withConfig({displayName:"ActivityItem__InnerDiv",componentId:"sc-nntdsf-1"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;"]),oe=o.ZP.div.withConfig({displayName:"ActivityItem__EventDiv",componentId:"sc-nntdsf-2"})(["display:flex;flex-direction:column;@media (min-width:43em){margin-left:16px;}"]),re=(o.ZP.div.withConfig({displayName:"ActivityItem__EndDiv",componentId:"sc-nntdsf-3"})(["display:flex;flex-direction:row;align-items:center;"]),o.ZP.div.withConfig({displayName:"ActivityItem__PriceDiv",componentId:"sc-nntdsf-4"})(["display:flex;flex-direction:column;align-items:flex-end;"]),o.ZP.div.withConfig({displayName:"ActivityItem__TitleDiv",componentId:"sc-nntdsf-5"})(["display:flex;flex-direction:row;align-items:center;width:100%;gap:4px;"])),ae=(0,o.ZP)(E.q.span).withConfig({displayName:"ActivityItem__Title",componentId:"sc-nntdsf-6"})(["color:",";font-size:14px;font-weight:600;margin-bottom:5px;@media (min-width:43em){font-size:17px;}"],(function(e){return e.neutral?"white":"rgb(48, 209, 88)"})),se=o.ZP.div.withConfig({displayName:"ActivityItem__Subtitle",componentId:"sc-nntdsf-7"})(["color:#cdcdcd;font-size:14px;font-weight:400;@media (min-width:43em){font-size:17px;}"]),ce=o.ZP.div.withConfig({displayName:"ActivityItem__StartDiv",componentId:"sc-nntdsf-8"})(["display:flex;flex-direction:row;align-items:center;"]),de=o.ZP.div.withConfig({displayName:"ActivityItem__Divider",componentId:"sc-nntdsf-9"})(["width:100%;background:#333;height:1px;margin-top:16px;
1"]),le=function(e){var t,i,o,c,d=e.activity,l=(0,a.Z)("(max-width: 43em)"),f=((0,ee.kc)().ethPrice,(0,s.Mx)().video),u=r.useState(!1),m=(0,n.Z)(u,2),x=m[0],v=m[1],g=r.useState(!1),w=(0,n.Z)(g,2),y=w[0],b=w[1],j=d||{},_=j.fromObject,C=j.toObject,I=j.nftObject,Z=j.price,k=j.timestamp,P=k?new Date(1e3*k):new Date,D=(Z&&(0,K.dFs)(Z),(null===_||void 0===_?void 0:_.id)===K.DR1),N=(0,E.q_)({cursor:"pointer",borderRadius:l?40:50,transform:x?"translate3d(0,-5%,0)":"translate3d(0,0%,0)",config:{mass:1,tension:170,friction:26,velocity:0}}),S=(0,E.q_)({cursor:"pointer",textDecoration:x?"underline":"none",config:{mass:1,tension:170,friction:26,velocity:0}}),M=(0,E.q_)({cursor:"pointer",textDecoration:y?"underline":"none",config:{mass:1,tension:170,friction:26,velocity:0}}),z=function(e){window.open("https://".concat(h.S?"goerli.":f.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(e),"_blank")};return d?(0,T.jsxs)(ie,{children:[(0,T.jsx)(ne,{children:(0,T.jsxs)(ce,{children:[!l&&(null===C||void 0===C?void 0:C.id)&&(0,T.jsx)(E.q.div,{onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},style:N,onClick:function(){return z(C.id)},children:(0,T.jsx)(R,{item:C,size:l?40:50})}),(0,T.jsxs)(oe,{children:[(0,T.jsxs)(re,{children:[(null===C||void 0===C?void 0:C.id)&&(0,T.jsx)(ae,{neutral:!0,onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)},style:S,onClick:function(){return z(C.id)},children:null!==(t=C.defaultPassObject)&&void 0!==t&&t.username?(null===(i=C.defaultPassObject)||void 0===i?void 0:i.username)+".glass":(0,Q.r0)(C.id)}),(0,T.jsx)(ae,{neutral:!0,children:(D?" collected":" bought")+(l?"":" edition #".concat(null===I||void 0===I?void 0:I.tokenId))}),!D&&(0,T.jsx)(ae,{neutral:!0,children:" from "}),!D&&(null===_||void 0===_?void 0:_.id)&&(0,T.jsx)(ae,{neutral:!0,onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)},style:M,onClick:function(){return z(_.id)},children:null!==(o=_.defaultPassObject)&&void 0!==o&&o.username?(null===(c=_.defaultPassObject)||void 0===c?void 0:c.username)+".glass":(0,Q.r0)(_.id)})]}),(0,T.jsx)(se,{children:p()(P)>p()(new Date).add(-1,"day")||l?p()(P).fromNow():p()(P).format("dddd, MMMM D, YYYY")+" at "+p()(P).format("h:mm a")})]})]})}),(0,T.jsx)(de,{})]}):(0,T.jsx)(X,{})},pe=i(88540),fe=i(94300),ue="\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n",me=o.ZP.div.withConfig({displayName:"activity__StyledSkeletonContainer",componentId:"sc-1scaya6-0"})(["",""],ue),he=(0,o.ZP)(M()).withConfig({displayName:"activity__StyledInfiniteScroll",componentId:"sc-1scaya6-1"})(["",""],ue),xe=function(e){return e?e.glassActivity:[]},ve=function(){var e=(0,P.Z)(N().mark((function e(t){return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ge=function(e){var t=e.video,i=e.currentIndex,n=e.index,o=e.updateHeight,a=(0,O.q)({id:t.id,query:z.uw,enrichItems:ve,parseItems:xe,comparer:fe.x,page_size:10,variables:{id:t.id},refetchMarker:"activity"}),s=a.data,c=a.fetchNext,d=a.hasNext,l=a.refetch;return r.useEffect((function(){n===i&&l()}),[i,n]),r.useEffect((function(){n===i&&o()}),[s]),0===s.length?d?(0,T.jsx)(me,{children:(0,k.Z)(Array(1).keys()).map((function(e){return(0,T.jsx)(le,{},"skeleton-item-".concat(e))}))}):(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(he,{loadMore:c,hasMore:d,loader:(0,T.jsx)(pe.J,{children:(0,T.jsx)(pe.X,{})}),useWindow:!0,children:s.map((function(e,t){return e&&(0,T.jsx)(le,{activity:e},"activity-item-".concat(t))}))})},we=o.ZP.div.withConfig({displayName:"CollectorItem__OuterDiv",componentId:"sc-vxh7bt-0"})(["width:100%;display:flex;flex-direction:column;margin-top:16px;overflow:visible;"]),ye=o.ZP.div.withConfig({displayName:"CollectorItem__InnerDiv",componentId:"sc-vxh7bt-1"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;"]),be=o.ZP.div.withConfig({displayName:"CollectorItem__EventDiv",componentId:"sc-vxh7bt-2"})(["display:flex;flex-direction:column;@media (min-width:43em){margin-left:16px;}"]),je=(0,o.ZP)(E.q.div).withConfig({displayName:"CollectorItem__Title",componentId:"sc-vxh7bt-3"})(["color:",";font-size:14px;font-weight:600;margin-bottom:4px;@media (min-width:43em){font-size:17px;}"],(function(e){return e.neutral?"white":"rgb(48, 209, 88)"})),_e=o.ZP.div.withConfig({displayName:"CollectorItem__Subtitle",componentId:"sc-vxh7bt-4"})(["color:white;font-size:14px;font-weight:500;@media (min-width:43em){font-size:17px;}"]),Ce=o.ZP.div.withConfig({displayName:"CollectorItem__StartDiv",componentId:"sc-vxh7bt-5"})(["display:flex;flex-direction:row;align-items:center;"]),Ie=o.ZP.div.withConfig({displayName:"CollectorItem__Divider",componentId:"sc-vxh7bt-6"})(["width:100%;background:#333;height:1px;margin-top:16px;"]),Ze=o.ZP.div.withConfig({displayName:"CollectorItem__Place",componentId:"sc-vxh7bt-7"})(["color:white;font-size:24px;font-weight:500;@media (min-width:43em){font-size:36px;}"]),ke=function(e){var t,i,o=e.item,c=e.index,d=o||{},l=d.userObject,p=d.counter,f=(0,s.Mx)().video,u=(0,a.Z)("(max-width: 43em)"),m=r.useState(!1),x=(0,n.Z)(m,2),v=x[0],g=x[1],w=(0,E.q_)({cursor:"pointer",borderRadius:u?40:50,transform:v?"translate3d(0,-5%,0)":"translate3d(0,
10%,0)",config:{mass:1,tension:170,friction:26,velocity:0}}),y=(0,E.q_)({cursor:"pointer",textDecoration:v?"underline":"none",config:{mass:1,tension:170,friction:26,velocity:0}}),b=function(e){window.open("https://".concat(h.S?"goerli.":f.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(e),"_blank")};return o&&l?(0,T.jsxs)(we,{children:[(0,T.jsxs)(ye,{children:[(0,T.jsxs)(Ce,{children:[!u&&(0,T.jsx)(E.q.div,{onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},style:w,onClick:function(){return b(l.id)},children:(0,T.jsx)(R,{item:l,size:u?40:50})}),(0,T.jsxs)(be,{children:[(0,T.jsx)(je,{neutral:!0,onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},style:y,onClick:function(){return b(l.id)},children:null!==(t=l.defaultPassObject)&&void 0!==t&&t.username?(null===(i=l.defaultPassObject)||void 0===i?void 0:i.username)+".glass":(0,Q.r0)(l.id)}),(0,T.jsx)(_e,{children:"".concat(p," edition").concat(p>1?"s":"")})]})]}),(0,T.jsx)(Ze,{children:1===c?"\ud83e\udd47":2===c?"\ud83e\udd48":3===c?"\ud83e\udd49":c})]}),(0,T.jsx)(Ie,{})]}):(0,T.jsx)(X,{})},Pe="\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n",De=o.ZP.div.withConfig({displayName:"collectors__StyledSkeletonContainer",componentId:"sc-16vtjkq-0"})(["",""],Pe),Ne=(0,o.ZP)(M()).withConfig({displayName:"collectors__StyledInfiniteScroll",componentId:"sc-16vtjkq-1"})(["",""],Pe),Se=function(e){var t;return e?null===(t=e.glassVideo)||void 0===t?void 0:t[0].owners:[]},Me=function(){var e=(0,P.Z)(N().mark((function e(t){return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return",[]);case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=function(e){var t=e.video,i=e.currentIndex,n=e.index,o=e.updateHeight,a=(0,O.q)({id:t.id,query:z.g_,enrichItems:Me,parseItems:Se,comparer:fe.x,page_size:10,variables:{id:t.id},refetchMarker:"collectors"}),s=a.data,c=a.fetchNext,d=a.hasNext,l=a.refetch;return r.useEffect((function(){n===i&&l()}),[i,n]),r.useEffect((function(){n===i&&o()}),[s]),0===s.length?d?(0,T.jsx)(De,{children:(0,k.Z)(Array(1).keys()).map((function(e){return(0,T.jsx)(ke,{},"skeleton-item-".concat(e))}))}):(0,T.jsx)(T.Fragment,{}):(0,T.jsxs)(Ne,{loadMore:c,hasMore:d,loader:(0,T.jsx)(pe.J,{children:(0,T.jsx)(pe.X,{})}),useWindow:!0,children:[" ",s.map((function(e,t){return e&&(0,T.jsx)(ke,{item:e,index:t+1},"collector-item-".concat(t))}))]})},Oe=i(75436);function Ee(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var Te=o.ZP.div.withConfig({displayName:"SocialDetails__OuterDiv",componentId:"sc-1gfn5sz-0"})(["display:flex;flex-direction:column;margin-top:16px;border-radius:8px;padding:16px;width:100%;border-color:#666;border-width:1px;border-style:solid;@media (min-width:43em){margin:0;margin-top:16px;padding:16px;}"]),Le=o.ZP.div.withConfig({displayName:"SocialDetails__SwipeDiv",componentId:"sc-1gfn5sz-1"})(["display:flex;flex:1;width:100%;flex-direction:row;justify-content:center;align-items:center;"]),Ae=(0,Z.Z)(C.Z)({borderBottom:"1px solid #666",fontFamily:"Centra No2","& .MuiTabs-indicator":{backgroundColor:"white"},"& .MuiTabs-scrollButtons.Mui-disabled":{opacity:.3}}),Ve=(0,Z.Z)((function(e){return(0,T.jsx)(I.Z,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(i),!0).forEach((function(t){(0,j.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ee(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({disableRipple:!0},e))}))((function(e){return{textTransform:"none",minWidth:0,fontWeight:700,opacity:1,fontSize:e.isMobile?"18px":"26px",textAlign:"left",padding:0,paddingBottom:"8px",marginRight:""!==e.label?e.isMobile?"24px":"32px":"0px",color:"#aaa",fontFamily:"Centra No2","&:hover":{fontFamily:"Centra No2",color:"white",opacity:1},"&.Mui-selected":{fontFamily:"Centra No2",color:"white"}}})),Re=function(e){var t,i,o,s=e.video,c=r.useState(0),d=(0,n.Z)(c,2),l=d[0],p=d[1],f=r.useState(void 0),u=(0,n.Z)(f,2),m=u[0],h=u[1],x=(0,a.Z)("(max-width: 43em)"),v=(0,Oe.m)(z.$c,{variables:{id:s.id}}).data;return(null!==(t=null===v||void 0===v||null===(i=v.glassVideo)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.owners
1)&&void 0!==t?t:[]).length>0?(0,T.jsxs)(Te,{children:[(0,T.jsxs)(Ae,{value:l,onChange:function(e,t){return p(t)},variant:"scrollable",scrollButtons:"off",children:[(0,T.jsx)(Ve,{isMobile:x,label:"Collectors"}),(0,T.jsx)(Ve,{isMobile:x,label:"Activity"})]}),(0,T.jsx)(Le,{children:(0,T.jsxs)(_.ZP,{style:{width:"100%"},axis:"x",index:l,onSwitching:p,animateHeight:!0,action:function(e){h(e)},children:[(0,T.jsx)(ze,{updateHeight:function(){return null===m||void 0===m?void 0:m.updateHeight()},currentIndex:l,index:0,video:s}),(0,T.jsx)(ge,{updateHeight:function(){return null===m||void 0===m?void 0:m.updateHeight()},currentIndex:l,index:1,video:s})]})})]}):(0,T.jsx)(T.Fragment,{})},qe=i(29500),Be=i(52236),He=function(e){var t,i,o=e.node,a=e.style,c=e.onMouseEnter,d=e.onMouseMove,l=e.onMouseLeave,p=e.onClick,f=(0,s.Mx)().video,u=r.useState("rgba(0,0,0,0.0)"),m=(0,n.Z)(u,2),x=m[0],v=m[1],g=r.useState("rgba(0,0,0,0.0)"),w=(0,n.Z)(g,2),y=w[0],b=w[1],j=(0,qe.qT)(o,{onMouseEnter:c,onMouseMove:d,onMouseLeave:l,onClick:p});(0,r.useEffect)((function(){L(o.id).then((function(e){v("hsl(".concat(e[0]/256*360,"deg, ",100,"%, ").concat(e[1]/256/4*3*100,"%)")),b("hsl(".concat(e[2]/256*360,"deg, ",100,"%, ").concat(3*e[3]/256/4*100,"%)"))}))}),[o.id]);return(0,T.jsxs)("svg",{onClick:function(){return function(e){""!==o.id&&window.open("https://".concat(h.S?"goerli.":f.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(e),"_blank")}(o.id)},children:[(0,T.jsxs)("defs",{children:[(0,T.jsx)("pattern",{id:"image-".concat(o.id),height:"100%",width:"100%",patternContentUnits:"objectBoundingBox",children:(0,T.jsx)("image",{preserveAspectRatio:"xMidYMid slice",width:"1",height:"1",xlinkHref:null!==(t=o.data.user)&&void 0!==t&&t.profileImageUri?"https://glassimg.imgix.net/".concat(null===(i=o.data.user)||void 0===i?void 0:i.profileImageUri,"?w=500&h=500&fit=crop&crop=faces&fm=webp"):""})}),(0,T.jsxs)("linearGradient",{id:"gradient-".concat(o.id),x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,T.jsx)("stop",{offset:"0%",stopColor:x}),(0,T.jsx)("stop",{offset:"100%",stopColor:y})]}),(0,T.jsxs)("radialGradient",{id:"outer",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,T.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0)"}),(0,T.jsx)("stop",{offset:"85%",stopColor:"rgba(255, 255, 255, 0.05)"}),(0,T.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.15)"})]}),(0,T.jsxs)("radialGradient",{id:"radial-".concat(o.id),x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,T.jsx)("stop",{offset:"0%",stopColor:"rgba(255, 255, 255, 0)"}),(0,T.jsx)("stop",{offset:"50%",stopColor:"rgba(255, 255, 255, 0.12)"}),(0,T.jsx)("stop",{offset:"100%",stopColor:"rgba(255, 255, 255, 0.3)"})]})]}),""!==o.id&&(0,T.jsx)(Be.q.circle,{cx:a.x,cy:a.y,r:a.radius,fill:"url(#gradient-".concat(o.id,")"),cursor:"pointer"},"gradient-".concat(o.id)),""===o.id?(0,T.jsx)(Be.q.circle,{cx:a.x,cy:a.y,r:a.radius,fill:"url(#outer)"},"outer-".concat(o.id)):(0,T.jsx)(Be.q.circle,{cx:a.x,cy:a.y,r:a.radius,fill:"url(#radial-".concat(o.id,")"),cursor:"pointer"},"radial-".concat(o.id)),""!==o.id&&(0,T.jsx)(Be.q.circle,{cx:a.x,cy:a.y,r:a.radius,fill:"url(#image-".concat(o.id,")"),cursor:"pointer",onMouseEnter:j.onMouseEnter,onMouseMove:j.onMouseMove,onMouseLeave:j.onMouseLeave,onClick:j.onClick},"image-".concat(o.id))]})},We=o.ZP.div.withConfig({displayName:"CollectorTooltip__UserDiv",componentId:"sc-s68o3r-0"})(["display:inline-flex;align-items:center;flex-direction:row;border-radius:35px;background:#000;width:fit-content;padding:15px;"]),Fe=o.ZP.div.withConfig({displayName:"CollectorTooltip__Details",componentId:"sc-s68o3r-1"})(["display:flex;flex-direction:column;margin-left:8px;margin-right:4px;"]),Ye=o.ZP.div.withConfig({displayName:"CollectorTooltip__Name",componentId:"sc-s68o3r-2"})(["font-weight:600;color:white;overflow:hidden;font-size:14px;"]),Ue=o.ZP.div.withConfig({displayName:"CollectorTooltip__Amount",componentId:"sc-s68o3r-3"})(["font-weight:400;color:white;font-size:12px;"]),Ge=function(e){var t,i,n,o,r=e.id,a=e.data;return(0,T.jsxs)(We,{children:[(0,T.jsx)(R,{item:a.user,size:35}),(0,T.jsxs)(Fe,{children:[(0,T.jsx)(Ye,{children:null!==(t=a.user)&&void 0!==t&&null!==(i=t.defaultPassObject)&&void 0!==i&&i.username?(null===(n=a.user)||void 0===n||null===(o=n.defaultPassObject)||void 0===o?void 0:o.username)+".glass":(0,Q.r0)(r)}),(0,T.jsx)(Ue,{children:"".concat(a.value," edition").concat(a.value>1?"s":"")})]})]})},Je=function(){return(0,T.jsx)($e,{children:(0,T.jsxs)(Xe,{children:[(0,T.jsx)(et,{children:"\ud83e\udd47"}),(0,T.jsx)(Ke,{children:"Be the first collector"}),(0,T.jsx)(Qe,{children:"Join The Circle for this video."})]})})},$e=o.ZP.div.withConfig({displayName:"EmptyState__OuterDiv",componentId:"sc-xgld3t-0"})(["position:absolute;top:calc(20% - 8px);left:calc(20% - 8px);width:60%;height:60%;background-color:rgba(0,0,0,0.6);backdrop-filter:blur(10px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;border-radius:8px;@media (min-width:62em){padding:16px;top:calc(20% - 16px);left:calc(20% - 16px);}"]),Xe=o.ZP.div.withConfig({displayName:"EmptyState__TextDiv",componentId:"sc-xgld3t-1"})(["display:flex;flex-direction:column;align-items:center;"]),Ke=o.ZP.div.withConfig({displayName:"EmptyState__Title",componentId:"sc-xgld3t-2"})(["color:white;font-size:18px;font-weight:700;text-align:center;@media (min-width:43em){font-size:24px;}@media (min-width:62em){font-size:20px;}@media (min-width:82em){font-size:24px;}"]),Qe=o.ZP.div.withConfig({displayName:"EmptyState__Subtitle",componentId:"sc-xgld3t-3"})(["color:white;font-size:14px;font-weight:500;text-align:center;@media (min-width:43em){font-size:16px;}@media (min-width:62em){font-size:16px;}@media (min-width:82em){font-size:18px;}"]),et=o.ZP.div.withConfig({displayName:"EmptyState__Rank",componentId:"sc-xgld3t-4"})(["font-size:85px;text-align:center;@media (min-width:43em){font-size:115px;}@media (min-width:62em){font-size:85px;}@media (min-width:82em){font-size:115px;}"]),tt={name:"",children:[{name:"node.0",value:96},{name:"node.1",value:100},{name:"node.2",value:60},{name:"node.3",value:43},{name:"node.4",value:74},{name:"node.5",value:35},{name:"node.6",value:45},{name:"node.7",value:48},{name:"node.8",value:63},{name:"node.9",value:61},{name:"node.10",value:39},{name:"node.11",value:88},{name:"node.12",value:83},{name:"node.13",value:32},{name:"node.14",value:78},{name:"node.15",value:45},{name:"node.75",value:38},{name:"node.17",value:58},{name:"node.18",value:82},{name:"node.19",value:88},{name:"node.20",value:45},{name:"node.21",value:81},{name:"node.22",value:70},{name:"node.23",value:53},{name:"node.24",value:67},{name:"node.25",value:76}]},it=function(e){var t,i,n,o=e.video,r=(0,a.Z)("(max-width: 43em)"),s=(0,Oe.m)(z.$c,{variables:{id:o.id}}).data,c=null!==(t=null===s||void 0===s||null===(i=s.glassVideo)||void 0===i?void 0:i[0].owners
1)&&void 0!==t?t:[];return(0,T.jsxs)(nt,{children:[(0,T.jsxs)(at,{children:[(0,T.jsxs)(st,{children:[(0,T.jsx)(pt,{children:"The Circle"}),c.length>0&&(0,T.jsxs)(ct,{children:[(0,T.jsx)(dt,{children:"OWNERS"}),(0,T.jsx)(lt,{end:!0,children:null!==(n=c.length)&&void 0!==n?n:0})]})]}),(0,T.jsx)(ft,{children:"By collecting this video, collectors earn a spot in The Circle.".concat(r?" ":"\n","Sized by # of editions owned.")})]}),(0,T.jsxs)(ot,{children:[(0,T.jsx)(rt,{children:c.length>0?(0,T.jsx)(qe.gL,{data:{name:"",children:c.map((function(e){return{name:e.user,value:e.counter,user:e.userObject}}))},id:"name",colors:{scheme:"greys"},colorBy:"id",tooltip:Ge,circleComponent:He,padding:20,leavesOnly:!1,animate:!0}):(0,T.jsx)(qe.gL,{data:tt,id:"name",colors:{scheme:"greys"},colorBy:"id",tooltip:function(){return(0,T.jsx)(T.Fragment,{})},circleComponent:function(e){return""===e.node.id?He(e):function(e){var t=e.node,i=e.style,n=e.onMouseEnter,o=e.onMouseMove,r=e.onMouseLeave,a=e.onClick,s=(0,qe.qT)(t,{onMouseEnter:n,onMouseMove:o,onMouseLeave:r,onClick:a});return(0,T.jsx)(Be.q.circle,{cx:i.x,cy:i.y,r:i.radius,fill:t.fill||i.color,stroke:i.borderColor,strokeWidth:i.borderWidth,opacity:i.opacity,onMouseEnter:s.onMouseEnter,onMouseMove:s.onMouseMove,onMouseLeave:s.onMouseLeave,onClick:s.onClick},t.id)}(e)},padding:20,leavesOnly:!1,animate:!0})}),!c.length&&(0,T.jsx)(Je,{})]})]})},nt=o.ZP.div.withConfig({displayName:"circle__OuterDiv",componentId:"sc-vnkhsl-0"})(["display:flex;flex-direction:column;position:relative;align-items:center;border-radius:8px;padding:16px;margin-top:16px;border-color:#666;border-width:1px;border-style:solid;@media (min-width:43em){margin:0;margin-top:16px;padding:16px;}"]),ot=o.ZP.div.withConfig({displayName:"circle__InnerDiv",componentId:"sc-vnkhsl-1"})(["margin-top:25px;position:relative;width:100%;padding-top:100%;@media (min-width:43em){width:70%;padding-top:70%;}@media (min-width:62em){width:60%;padding-top:60%;}@media (min-width:82em){width:55%;padding-top:55%;}"]),rt=o.ZP.div.withConfig({displayName:"circle__CircleDiv",componentId:"sc-vnkhsl-2"})(["position:absolute;top:0;left:0;bottom:0;right:0;height:100%;display:flex;align-items:center;justify-content:center;"]),at=o.ZP.div.withConfig({displayName:"circle__TextDiv",componentId:"sc-vnkhsl-3"})(["display:flex;flex-direction:column;align-items:flex-start;width:100%;"]),st=o.ZP.div.withConfig({displayName:"circle__TitleDiv",componentId:"sc-vnkhsl-4"})(["width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),ct=o.ZP.div.withConfig({displayName:"circle__DetailsDiv",componentId:"sc-vnkhsl-5"})(["display:flex;flex-direction:row;align-items:center;"]),dt=o.ZP.div.withConfig({displayName:"circle__DetailsTitle",componentId:"sc-vnkhsl-6"})(["color:#ccc;font-weight:400;font-size:12px;@media (min-width:43em){font-size:14px;}@media (min-width:62em){font-size:14px;}"]),lt=o.ZP.div.withConfig({displayName:"circle__DetailsContent",componentId:"sc-vnkhsl-7"})(["color:white;font-weight:bold;font-size:18px;margin-left:8px;margin-right:",";@media (min-width:43em){font-size:24px;margin-left:8px;margin-right:",";}@media (min-width:62em){font-size:26px;margin-left:8px;margin-right:",";}"],(function(e){return e.end?"0":"32px"}),(function(e){return e.end?"0":"24px"}),(function(e){return e.end?"0":"32px"})),pt=o.ZP.div.withConfig({displayName:"circle__Title",componentId:"sc-vnkhsl-8"})(["color:white;font-size:22px;font-weight:700;text-align:left;@media (min-width:43em){font-size:40px;}
1"]),ft=o.ZP.div.withConfig({displayName:"circle__Description",componentId:"sc-vnkhsl-9"})(["color:#cdcdcd;font-size:14px;font-weight:400;white-space:pre-wrap;text-align:left;margin-top:16px;@media (min-width:43em){font-size:18px;}"]),ut=function(){var e=(0,x.mA)().address,t=(0,x.LN)().chain,i=(0,s.Mx)(),o=i.video,c=i.editions,l=i.openseaLink,g=r.useState(!1),j=(0,n.Z)(g,2),_=j[0],C=j[1],I=r.useState(!1),Z=(0,n.Z)(I,2),k=Z[0],P=Z[1],D=At(k),N=r.useState(!1),S=(0,n.Z)(N,2),M=S[0],z=S[1],O=r.useState(!1),E=(0,n.Z)(O,2),L=E[0],A=E[1],V=(0,m.VP)().copy,R=(0,m.e1)(),q=(0,n.Z)(R,2)[1],B=(0,a.Z)("(max-width: 43em)"),H={background:M?"#333":"rgba(0,0,0,0)"};function W(){var t="https://glass.xyz/play/"+o.linkId;return c.referralBasisPoints>0&&e?t+"?ref=".concat(e):t}return r.useEffect((function(){P(!0)}),[]),(0,T.jsxs)(mt,{children:[(0,T.jsxs)(ht,{children:[(0,T.jsxs)(gt,{children:[(0,T.jsx)(xt,{children:o.title.replace(/\\n/g,"\n")}),(0,T.jsxs)(wt,{children:[(0,T.jsx)(yt,{children:p()(new Date(1e3*o.created)).format("MMMM D, YYYY")}),(0,T.jsx)(bt,{children:(0,T.jsx)(m.J2,{hideArrow:!0,trigger:"click",visible:L,placement:"bottomEnd",onVisibleChange:function(e){A(e)},style:{width:"100%"},content:(0,T.jsxs)(It,{children:[c.referralBasisPoints>0&&(0,T.jsxs)(kt,{color:"#fff",style:{margin:"8px 16px 0 16px",paddingBottom:"16px",fontSize:"14px",fontWeight:600,borderBottom:"1px solid #333"},children:["Refer a collector and\nearn \n                        ".concat(Math.round(c.referralBasisPoints/1e4*100),"% of their purchase. Withdraw your earnings from the "),(0,T.jsx)(w(),{href:"/dashboard",children:(0,T.jsx)(Lt,{children:"Dashboard."})})]}),(0,T.jsxs)(Zt,{onClick:function(){return function(){var e='Watch "'.concat(o.title,'" on Glass\n\n').concat(W(),"\n\n"),t="https://twitter.com/intent/tweet?via=GlassProtocol&text="+encodeURIComponent(e);window.open(t),(0,y.Z)(new b.m5)}()},children:[(0,T.jsx)(u.tLe,{color:"#ff4f00"}),(0,T.jsx)(kt,{color:"#ff4f00",children:"Tweet"})]}),(0,T.jsxs)(Zt,{onClick:function(){return(0,y.Z)(new b.e_),V(W()),void q({text:"Copied the link to this video."})},children:[(0,T.jsx)(u.CKM,{}),(0,T.jsx)(kt,{color:"white",children:"Copy Link"})]})]}),children:(0,T.jsxs)(jt,{share:!0,onMouseEnter:function(){return z(!0)},onMouseLeave:function(){return z(!1)},style:H,children:[(0,T.jsx)(f.Z,{style:{transform:"scaleX(-1)",width:B?20:25,height:B?20:25,marginRight:"5px"}}),(0,T.jsx)(_t,{children:c.referralBasisPoints>0?"SHARE & EARN ".concat(Math.round(c.referralBasisPoints/1e4*100),"%"):"SHARE"})]})})})]})]}),(0,T.jsx)(Ct,{}),(0,T.jsx)(Mt,{id:"desc",expanded:_,showExpand:D,children:d()(Tt)(o.description.replace(/\\n
1/g,"\n"))}),D&&(0,T.jsx)(Ot,{onClick:function(){return C(!_)},children:_?"SHOW LESS":"SHOW MORE"}),(0,T.jsxs)(Pt,{children:[(0,T.jsxs)(Dt,{children:[(0,T.jsx)(Nt,{children:"Creator"}),(0,T.jsx)(St,{onClick:function(){return window.open("https://".concat(h.S?"goerli.":o.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(o.creator.address),"_blank")},children:""!==o.creator.glassPass?o.creator.glassPass+".glass":""!==o.creator.ensName?o.creator.ensName:o.creator.address})]}),(0,T.jsxs)(Dt,{children:[(0,T.jsx)(Nt,{children:"Video ID"}),(0,T.jsx)(St,{onClick:function(){var e;return window.open("https://".concat(h.S?"goerli.":o.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(v.O0r[null!==(e=null===t||void 0===t?void 0:t.id)&&void 0!==e?e:1],"#readContract"),"_blank")},children:o.id})]}),(0,T.jsxs)(Dt,{children:[(0,T.jsx)(Nt,{children:"Contract Address"}),(0,T.jsx)(St,{onClick:function(){return window.open("https://".concat(h.S?"goerli.":o.chain===te.p0.OPTIMISM?"optimistic.":"","etherscan.io/address/").concat(c.clone,"#internaltx"),"_blank")},children:c.clone})]}),l&&(0,T.jsxs)(Dt,{children:[(0,T.jsx)(Nt,{children:"OpenSea Collection"}),(0,T.jsx)(St,{onClick:function(){return window.open(l,"_blank")},children:l})]}),(0,T.jsxs)(Dt,{children:[(0,T.jsx)(Nt,{children:"Arweave Tx"}),(0,T.jsx)(St,{onClick:function(){return window.open(o.videoURL,"_blank")},children:o.videoURL.substring(20)})]})]})]}),(0,T.jsx)(it,{video:o}),(0,T.jsx)(Re,{video:o}),(0,T.jsx)(vt,{})]})},mt=o.ZP.div.withConfig({displayName:"VideoDetails__OuterDiv",componentId:"sc-ly4i4v-0"})(["font-family:'Centra No2',sans-serif;display:flex;flex-direction:column;justify-content:flex-start;margin-top:16px;@media (min-width:43em){margin-top:0px;padding:0;width:100%;}@media (min-width:62em){padding:0;margin-bottom:0;width:100%;}"]),ht=o.ZP.div.withConfig({displayName:"VideoDetails__Details",componentId:"sc-ly4i4v-1"})(["display:flex;flex-direction:column;justify-content:flex-start;border-radius:16px;margin-top:16px;position:relative;z-index:4;@media (min-width:43em){margin-top:32px;}"]),xt=o.ZP.div.withConfig({displayName:"VideoDetails__Title",componentId:"sc-ly4i4v-2"})(["color:white;font-size:24px;font-weight:700;@media (min-width:43em){font-size:46px;}"]),vt=o.ZP.div.withConfig({displayName:"VideoDetails__BottomSpacer",componentId:"sc-ly4i4v-3"})(["@media (max-width:43em){height:64px;}"]),gt=o.ZP.div.withConfig({displayName:"VideoDetails__TopMetadataDiv",componentId:"sc-ly4i4v-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),wt=o.ZP.div.withConfig({displayName:"VideoDetails__SubtitleDiv",componentId:"sc-ly4i4v-5"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center;"]),yt=o.ZP.div.withConfig({displayName:"VideoDetails__DateDiv",componentId:"sc-ly4i4v-6"})(["color:#cdcdcd;font-size:14px;font-weight:600;@media (min-width:43em){font-size:17px;}"]),bt=o.ZP.div.withConfig({displayName:"VideoDetails__ActionsDiv",componentId:"sc-ly4i4v-7"})(["display:flex;flex-direction:row;align-items:center;"]),jt=o.ZP.div.withConfig({displayName:"VideoDetails__ActionDiv",componentId:"sc-ly4i4v-8"})(["display:flex;flex-direction:row;align-items:center;cursor:pointer;border-radius:",";padding:",";margin-left:8px;@media (min-width:43em){margin-left:16px;}"],(function(e){return e.share?"8px":""}),(function(e){return e.share?"8px":""})),_t=o.ZP.div.withConfig({displayName:"VideoDetails__Action",componentId:"sc-ly4i4v-9"})(["color:white;font-size:14px;font-weight:600;min-width:16px;@media (min-width:43em){font-size:18px;}"]),Ct=o.ZP.div.withConfig({displayName:"VideoDetails__DividerDiv",componentId:"sc-ly4i4v-10"})(["width:100%;height:1px;background-color:#666;margin-top:8px;margin-bottom:16px;@media (min-width:43em){margin-top:4px;margin-bottom:16px;}"]),It=o.ZP.div.withConfig({displayName:"VideoDetails__PopoverWrapper",componentId:"sc-ly4i4v-11"})(["display:flex;flex-direction:column;align-items:center;min-width:250px;font-family:'Centra No2',sans-serif;"]),Zt=o.ZP.div.withConfig({displayName:"VideoDetails__MenuItem",componentId:"sc-ly4i4v-12"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;padding:12px 16px;align-items:center;cursor:pointer;:hover{background:#333;}"]),kt=o.ZP.div.withConfig({displayName:"VideoDetails__MenuItemTitle",componentId:"sc-ly4i4v-13"})(["font-weight:500;color:",";font-size:16px;"],(function(e){return e.color})),Pt=o.ZP.div.withConfig({displayName:"VideoDetails__Rows",componentId:"sc-ly4i4v-14"})(["font-family:'Centra No2',sans-serif;display:flex;flex-direction:column;padding:12px;border:1px solid #666;border-radius:8px;gap:8px;"]),Dt=o.ZP.div.withConfig({displayName:"VideoDetails__Row",componentId:"sc-ly4i4v-15"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;overflow:hidden;gap:64px;"]),Nt=o.ZP.div.withConfig({displayName:"VideoDetails__Label",componentId:"sc-ly4i4v-16"})(["font-family:'Centra No2',sans-serif;font-size:14px;font-weight:400;margin:0;white-space:nowrap;color:#fff;@media (min-width:43em){font-size:16px;}"]),St=o.ZP.div.withConfig({displayName:"VideoDetails__Value",componentId:"sc-ly4i4v-17"})(["color:#ccc;font-family:'Centra No2',sans-serif;font-size:14px;font-weight:500;margin:0;text-align:right;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;@media (min-width:43em){font-size:16px;}:hover{color:#fff;text-decoration:underline;}"]),Mt=o.ZP.div.withConfig({displayName:"VideoDetails__Description",componentId:"sc-ly4i4v-18"})(["color:white;font-size:14px;line-height:1.5;margin-bottom:",";word-break:break-word;white-space:pre-wrap;word-wrap:normal;font-weight:500;@media (min-width:43em){margin:0;margin-bottom:",";font-size:18px;}",""],(function(e){return e.showExpand?"8px":"16px"}),(function(e){return e.showExpand,"16px"}),(function(e){return e.expanded?"":"display: -webkit-box;\n  -webkit-line-clamp: ".concat(e.numOfLines||3,";
1 /* number of lines to show */\n  -webkit-box-orient: vertical;\n  text-overflow: ellipsis;\n  overflow: hidden;")})),zt=o.ZP.span.withConfig({displayName:"VideoDetails__LinkSpan",componentId:"sc-ly4i4v-19"})(["color:white;white-space:pre-wrap;word-wrap:normal;"]),Ot=o.ZP.div.withConfig({displayName:"VideoDetails__DescExpand",componentId:"sc-ly4i4v-20"})(["color:#e5e5e5;font-size:14px;font-weight:600;margin-bottom:16px;width:fit-content;cursor:pointer;@media (min-width:43em){margin-bottom:32px;}"]),Et=o.ZP.a.withConfig({displayName:"VideoDetails__LinkTag",componentId:"sc-ly4i4v-21"})(["color:white;font-weight:bold;white-space:pre-wrap;word-wrap:normal;"]),Tt=[{regex:/(http|https):\/\/(\S+)\.([a-z]{2,}?)(.*?)( |,|$|\.)/gim,fn:function(e,t){return(0,T.jsxs)(zt,{children:[(0,T.jsxs)(Et,{target:"_blank",href:"".concat(t[1],"://").concat(t[2],".").concat(t[3]).concat(t[4]),children:[t[2],".",t[3],t[4]]}),t[5]]},e)}},{regex:/(\S+)\.([a-z]{2,}?)(.*?)( |,|$|\.)/gim,fn:function(e,t){return(0,T.jsxs)(zt,{children:[(0,T.jsxs)(Et,{target:"_blank",href:"http://".concat(t[1],".").concat(t[2]).concat(t[3]),children:[t[1],".",t[2],t[3]]}),t[4]]},e)}}],Lt=o.ZP.span.withConfig({displayName:"VideoDetails__DashLink",componentId:"sc-ly4i4v-22"})(["color:#ff4f00;font-size:14px;font-weight:600;cursor:pointer;:hover{text-decoration:underline;}"]);function At(e,t){var i=(0,a.Z)("(max-width: 43em)"),o=r.useState(!1),s=(0,n.Z)(o,2),c=s[0],d=s[1];return r.useEffect((function(){var n=document.getElementById("desc");if(e&&n){var o=n.offsetHeight;d(o/(1.5*(i?14:16))>(t?t-.5:2.5))}}),[e,i]),c}},88540:function(e,t,i){i.d(t,{J:function(){return r},X:function(){return a}});var n=i(85444),o=i(71920),r=n.ZP.div.withConfig({displayName:"Spinner__SmallSpinnerContainer",componentId:"sc-1xl0a6j-0"})(["width:100%;display:flex;align-items:center;justify-content:center;padding:8px 0;"]),a=(0,n.ZP)(o.$j).withConfig({displayName:"Spinner__SmallSpinner",componentId:"sc-1xl0a6j-1"})(["min-width:32px;min-height:32px;"])},94300:function(e,t,i){i.d(t,{x:function(){return n}});var n=function(e,t){return e.id===t.id}},42285:function(e,t,i){i.d(t,{q:function(){return h}});var n=i(50029),o=i(59499),r=i(87794),a=i.n(r),s=i(67294),c=i(75436),d=i(35840),l=i(36816),p=i(27812),f=i(17829);function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){(0,o.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function h(e){var t=e.id,i=e.query,o=e.subscriptionAdd,r=e.subscriptionsRemove,u=e.enrichItems,h=e.comparer,x=e.parseItems,v=e.page_size,g=void 0===v?3:v,w=e.variables,y=void 0===w?{}:w,b=e.refetchMarker,j=e.enrichedItemSorter,_=e.rawToEnrichedComparer,C=o&&(0,c.m)(o,{variables:m({offset:0,limit:g},y)}).data,I=r&&r.map((function(e){return(0,c.m)(e,{variables:m({offset:0,limit:g},y)}).data})).map(x),Z=I&&I.flat(),k=(0,l.D)(C),P=(0,l.D)(Z),D=(0,d.a)(i,{variables:m({offset:0,limit:0},y),skip:!0}).fetchMore,N=s.useCallback(function(){var e=(0,n.Z)(a().mark((function e(t){var i,n,o,r,s,c,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.offset,n=t.limit,e.next=3,D({variables:{offset:i,limit:n}});case 3:return o=e.sent,r=o.data,s=x(r),e.next=8,u(s);case 8:return c=e.sent,d=s.length,e.abrupt("return",{rawData:s,data:c,hasMore:d===n});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[u,D,x]);s.useEffect((function(){if(o&&B&&h){var e=x(C);if(null!==e&&void 0!==e&&e.length){var t=x(k),i=e.filter((function(e){return!t.find((function(t){return h(e,t)}))})).filter((function(e){return!M.find((function(t){return h(e,t)}))}));i.length&&(0,n.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u(i);case 3:if((t=e.sent).length){e.next=6;break}return e.abrupt("return");case 6:B(t,i),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))()}}}),[C]),s.useEffect((function(){if(null!==r&&void 0!==r&&r.length&&H&&null!==Z&&void 0!==Z&&Z.length&&h){var e=Z.filter((function(e){return!P.find((function(t){return h(e,t)}))})).filter((function(e){return M.find((function(t){return h(e,t)}))}));e.length&&H(e)}}),[Z]);var S=function(e){var t=e.id,i=e.getItems,o=e.page_size,r=e.onNextItems,c=e.refetchMarker,d=e.enrichedItemSorter,l=e.comparer,u=e.rawToEnrichedComparer,m=(0,s.use
1State)([]),h=m[0],x=m[1],v=(0,s.useState)([]),g=v[0],w=v[1],y=(0,s.useState)(),b=y[0],j=y[1],_=(0,s.useState)(0),C=_[0],I=_[1],Z=(0,s.useState)(!0),k=Z[0],P=Z[1],D=(0,s.useState)(!0),N=D[0],S=D[1],M=(0,s.useState)(!1),z=M[0],O=M[1],E=(0,s.useState)(!1),T=E[0],L=E[1],A=(0,s.useCallback)((0,n.Z)(a().mark((function e(){var t,n,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),e.prev=1,e.next=4,i({offset:0,limit:o});case 4:t=e.sent,n=t.rawData,s=t.data,c=t.hasMore,P(c),r&&r(s),I(1),w(n),x(s),j(void 0),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(1),j(e.t0),console.log("Couldn't fetch data",e.t0),(0,f.Tb)(e.t0);case 21:return e.prev=21,S(!1),e.finish(21);case 24:case"end":return e.stop()}}),e,null,[[1,16,21,24]])}))),[i,r,o]);(0,s.useEffect)((function(){A()}),[c]);var V=(0,s.useCallback)((0,n.Z)(a().mark((function e(){var t,n,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k||z||!o){e.next=14;break}return O(!0),e.next=4,i({offset:C*o,limit:o});case 4:t=e.sent,n=t.data,s=t.hasMore,c=t.rawData,r&&r(n),x((function(e){return[].concat((0,p.Z)(e),(0,p.Z)(n))})),w((function(e){return[].concat((0,p.Z)(e),(0,p.Z)(c))})),I((function(e){return e+1})),P(s),O(!1);case 14:case"end":return e.stop()}}),e)}))),[i,k,z,r,C,o]),R=(0,s.useCallback)((0,n.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),e.next=3,A();case 3:L(!1);case 4:case"end":return e.stop()}}),e)}))),[A]);(0,s.useEffect)((function(){R()}),[t]);var q=(0,s.useCallback)((function(e,t){if(C&&o&&d){var i=[].concat((0,p.Z)(t),(0,p.Z)(g));w(i);var n=[].concat((0,p.Z)(e),(0,p.Z)(h)).sort(d);C*o>=n.length?x(n):(x(n.slice(0,C*o)),P(!0))}}),[h,d,C,o,g]),B=(0,s.useCallback)((function(e){if(C&&o&&l&&u){var t=g.filter((function(t){return!e.find((function(e){return l(t,e)}))}));w(t);var i=h.filter((function(t){return!e.find((function(e){return u(e,t)}))}));i.length,h.length,i.length,x(i)}}),[l,h,i,r,C,o,g,u]);return{rawData:g,data:h,error:b,setData:x,fetchNext:V,hasNext:k,refetch:R,isLoading:N,nextIsLoading:z,isRefetching:T,onSubscriptionDataAdd:q,onSubscriptionDataRemove:B}}({id:t,getItems:N,enrichedItemSorter:j,page_size:g,refetchMarker:b,comparer:h,rawToEnrichedComparer:_}),M=S.rawData,z=S.data,O=S.fetchNext,E=S.hasNext,T=S.setData,L=S.error,A=S.refetch,V=S.isLoading,R=S.nextIsLoading,q=S.isRefetching,B=S.onSubscriptionDataAdd,H=S.onSubscriptionDataRemove;return{rawData:M,data:z,error:L,setData:T,fetchNext:O,hasNext:E,refetch:A,isLoading:V,nextIsLoading:R,isRefetching:q,onSubscriptionDataRemove:H}}},36816:function(e,t,i){i.d(t,{D:function(){return o}});var n=i(67294),o=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e}),[e]),t.current}}}]);

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.