PageSourceSearch

https://cdn-web.gettr.com/static/js/5127.ab539c22.chunk.js

js gettr.com collected 2026-09-24 08:32:46 UTC 6,247 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgetter_fe=self.webpackChunkgetter_fe||[]).push([[5127],{22336:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(2295),o=n(68963),s=n(47345);const l=(e,t)=>{const n=(0,o.useRef)(null),r=(0,o.useRef)(new Map),s=(0,o.useRef)(-1),l=(0,o.useRef)([]);(0,o.useEffect)((()=>{if(!e&&!t)return;const o=r.current;return n.current=new IntersectionObserver((n=>{if(n.forEach((e=>{const t=parseInt(e.target.dataset.index,10);isNaN(t)||(e.isIntersecting&&e.intersectionRatio>.1?r.current.set(t,{element:e.target,rect:e.boundingClientRect,intersectionRatio:e.intersectionRatio}):r.current.delete(t))})),e){const t=.3*window.innerHeight;let n=-1,o=1/0;r.current.forEach(((e,r)=>{const s=Math.abs(e.rect.top-t);s<o&&(o=s,n=r)})),-1!==n&&n!==s.current&&(s.current=n,window.requestIdleCallback?window.requestIdleCallback((()=>{e(n)})):e(n))}if(t){const e=[];r.current.forEach(((t,n)=>{t.intersectionRatio>.5&&e.push(n)})),e.sort(((e,t)=>e-t));(e.length!==l.current.length||e.some(((e,t)=>e!==l.current[t])))&&(l.current=[...e],window.requestIdleCallback?window.requestIdleCallback((()=>{t(e)})):t(e))}}),{root:null,rootMargin:"0px",threshold:[0,.1,.25,.5,.75,1]}),()=>{n.current&&n.current.disconnect(),o.clear(),s.current=-1,l.current=[]}}),[e,t]);return{observeElement:(0,o.useCallback)(((e,t)=>{e&&n.current&&(e.dataset.index=t.toString(),n.current.observe(e))}),[])}};var a=n(75859);const i=(0,r.Z)((()=>({virtual:{marginBottom:50}}))),c={top:1e3,bottom:1400},d=(0,o.forwardRef)(((e,t)=>{let{itemContainer:n=null,items:r,renderItem:d,initialIndex:u=0,endReached:h,endReachedContent:g,emptyPlaceholder:p,scrollSeekPlaceholder:m,onVisibleIndexChange:v,onVisibleElementsChange:f,onAtBottom:x,increaseViewportBy:w=c,...b}=e;const I=i(),{observeElement:C}=l(v,f),k=(0,o.useMemo)((()=>(e=>(e=parseInt(e,10))>0?e-.5:e)(r&&u<r.length?u:0)),[u,r]),R=(0,o.useCallback)(((e,t)=>(0,a.jsx)("div",{ref:t=>{t&&C(t,e)},children:d(e,t)})),[d,C]),y=(0,o.useCallback)((e=>{x&&x(e)}),[x]),S=(0,o.useMemo)((()=>({Footer:g,EmptyPlaceholder:p,itemContainer:n,ScrollSeekPlaceholder:m})),[p,g,n,m]);return(0,a.jsx)(s.OO,{...b,ref:t,initialTopMostItemIndex:k,increaseViewportBy:w,useWindowScroll:void 0===b.useWindowScroll||b.useWindowScroll,data:r,itemContent:v?R:d,components:S,endReached:h,atBottomStateChange:y,id:"virtuoso",className:I.virtual})}));d.displayName="EndlessResults";const u=d},63414:(e,t,n)=>{n.d(t,{X:()=>a});var r=n(2295),o=n(55195),s=n(75859);const l=(0,r.Z)((e=>({endTips:{display:"block",textAlign:"center",color:e.palette.newColors.neutral[300],padding:e=>{let{paddingBottom:t}=e;return t?"0 0 ".concat(t,"px 0"):"50px 0px 90px 0"},fontSize:16,lineHeight:"19px",fontWeight:"bold","&:before,&:after":{content:"' '",display:"inline-block",height:0,width:e=>{let{hideDash:t}=e;return t?0:100},borderTop:"1px solid ".concat(e.palette.newColors.neutral[300]),verticalAlign:"super"},"& span":{padding:"0 20px"}}}))),a=e=>{let{text:t="getter_fe.post.tips.end",paddingBottom:n,hideDash:r,clickEvent:a,style:i}=e;const c=l({paddingBottom:n,hideDash:r}),{t:d}=(0,o.$)();return(0,s.jsx)("div",{style:i,className:c.endTips,onClick:a,children:(0,s.jsx)("span",{children:d(t)})})}},86837:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(24463);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.AI;return e?(0,r.Jn)(e,t,{allowExternal:!0}):""}},71246:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(81557),o=n(68963),s=n(97924),l=n(83111),a=n(63041),i=n(55195),c=n(78344),d=n(2295),u=n(53390),h=n(40771),g=n(54773),p=n(75859);const m=(0,d.Z)((e=>({root:{marginTop:e.spacing(2),[e.breakpoints.down("xs")]:{marginTop:e.spacing(9)}},searchGetter:{height:e.spacing(5),borderRadius:30,padding:e.spacing(1.25,2.5),backgroundColor:e.palette.newColors.neutral[900],color:e.palette.newColors.neutral[25]},noResult:{wordBreak:"break-word"}}))),v=e=>{let{query:t,userData:n,postData:r,morePosts:o,fetchMorePostListItems:s,loggedinUserId:l,searchingUserName:d,offset:v,classes:f,isLoading:x,cursor:w}=e;const b=m(),I=(0,c.s0)(),{t:C}=(0,i.$)();return(0,p.jsx)(u.Z,{className:b.root,children:r.length||x?(0,p.jsx)(g.Z,{items:r,userData:n,userId:l,classes:{...f,...b},moreItems:o,offset:v,loadMore:s,isLoading:x,cursor:w}):(0,p.jsxs)(u.Z,{alignItems:"center",mt:5,display:"flex",flexDirection:"column",children:[(0,p.jsxs)(u.Z,{className:b.noResult,textAlign:"center",mb:3,fontSize:16,color:"newColors.neutral.500",children:[C("getter_fe.common.search.profileNoResult",{userName:d}),t]}),(0,p.jsx)(h.Z,{disableElevation:!0,className:b.searchGetter,variant:"contained",onClick:()=>{I("/search?".concat((0,a.stringify)({q:t})))},children:C("getter_fe.common.search.searchGettr")})]})})};var f=n(62290),x=n(39633);const w=e=>{let{query:t,userId:n}=e;const[r,a]=(0,o.useState)([]),[i,c]=(0,o.useState)({}),[d,u]=(0,o.useState)(!0),[h,g]=(0,o.useState)(!0),[m,w]=(0,o.useState)(null),{userInfo:b}=(0,x.E)(),I=async()=>{(0,l.Z)(t)||(0,l.Z)(n)||0===m||(g(!0),await s.W.fetchProfileSearchResult(t||null,n,m,20,(e=>{var t,n,r,o,s,l;if("OK"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.rc)&&null!==e&&void 0!==e&&null!==(n=e.data)&&void 0!==n&&null!==(r=n.result)&&void 0!==r&&null!==(o=r.data)&&void 0!==o&&o.list&&null!==e&&void 0!==e&&null!==(s=e.data)&&void 0!==s&&null!==(l=s.result)&&void 0!==l&&l.aux){var i,d,h,p,m;g(!1);const t=null===e||void 0===e||null===(i=e.data)||void 0===i||null===(d=i.result)||void 0===d||null===(h=d.data)||void 0===h?void 0:h.list,n=null===e||void 0===e||null===(p=e.data)||void 0===p||null===(m=p.result)||void 0===m?void 0:m.aux;
1if(w(null===n||void 0===n?void 0:n.cursor),t&&n){const e=n.removed||0,r=(0,f.RR)(t,n)||[],o=(0,f.nL)(n)||{};a((e=>[...e,...r])),c((e=>({...e,...o}))),u((null===r||void 0===r?void 0:r.length)+e>=20),w(null===n||void 0===n?void 0:n.cursor)}}else w(0),g(!1)}),(e=>{w(0),g(!1)})))};return(0,o.useEffect)((()=>{a([]),c({}),u(!0),I()}),[]),(0,p.jsx)(v,{query:t,fetchMorePostListItems:I,loggedinUserId:null===b||void 0===b?void 0:b._id,searchingUserName:n,userListItems:[],hashtagListItems:[],userData:i,postData:r,morePosts:d,offset:10,isLoading:h,cursor:m})},b=()=>{const[e]=(0,r.lr)(),t=e.get("q"),n=e.get("userId");return(0,p.jsx)(w,{query:t,userId:n},"".concat(n,"-").concat(t))}}}]);

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.