PageSourceSearch

https://app.tweethunter.io/_next/static/chunks/9444-7634cfce4d11d5cc.js

js tweethunter.io collected 2026-09-24 09:25:37 UTC 10,439 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f04e8e7-8977-405d-9803-22efbffda5a5",e._sentryDebugIdIdentifier="sentry-dbid-4f04e8e7-8977-405d-9803-22efbffda5a5")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9444],{33158:function(e,t,a){a.d(t,{z:function(){return p}});var s=a(85893),i=a(67294),l=a(48633),d=a(67142),n=a(88329),o=a(26972),r=a(12519),c=a(95478),u=a(59342),x=a(90573),b=a(90092),v=a(68029),f=a(38488),h=a(30286),w=a(30381),m=a.n(w),g=a(85551),y=a(95857);a(81759),a(15138);var D=a(8193);function p(e){let{onChange:t=()=>{},defaultSelection:a="7",show1dPicker:w=!1,show180dPicker:p=!1,disableTimeframe:j=!1,timeFrame:k}=e,[C,O]=(0,i.useState)(!1),[S,I]=(0,i.useState)(a),[_,z]=(0,i.useState)(),[E,L]=(0,i.useState)(void 0),[T,P]=(0,i.useState)([{startDate:m()().subtract(3,"day").startOf("day").toDate(),endDate:m()().subtract(1,"day").endOf("day").toDate(),key:"selection"}]),[R,W]=(0,i.useState)(!1),V=(0,i.useRef)(null),[H]=(0,l.kP)();(0,g.t$)(V,async()=>{await new Promise(e=>setTimeout(e,200)),O(!1)}),(0,i.useEffect)(()=>{if(H&&!R){W(!0);let e=async()=>{var e,t;let a=d.GX.firestore(),s=await a.collection("users").doc(null===(e=(0,y.D0)(H))||void 0===e?void 0:e.id).collection("accounts").doc(null===(t=(0,y.D0)(H))||void 0===t?void 0:t.idAccount).collection("accountStats").orderBy("dateFetched","asc").limit(1).get(),i=[];s.forEach(e=>{i.push(e.data())}),(null==i?void 0:i.length)>0&&L(i[0].dateFetched.toDate())};e()}},[H]),(0,i.useEffect)(()=>{"customDate"!==S&&(P([{startDate:m()().subtract(3,"day").startOf("day").toDate(),endDate:m()().subtract(1,"day").endOf("day").toDate(),key:"selection"}]),z(void 0))},[S]);let Z=e=>{let a;switch(e){case"1":a=m()().subtract(1,"day").startOf("day");break;case"30":a=m()().subtract(30,"days").startOf("day");break;case"90":a=m()().subtract(90,"days").startOf("day");break;case"180":a=m()().subtract(180,"days").startOf("day");break;case"customDate":a={start:m()(T[0].startDate).startOf("day"),end:m()(T[0].endDate).endOf("day")};break;default:a=m()().subtract(7,"days").startOf("day")}if(I(e),"customDate"===e){O(!1),z(a),t({start:new Date(a.start),end:new Date(a.end)});return}t(new Date(a))},A="neutral.background-subdued",B={base:"1 0 0",md:"initial"},F={base:"sm-8",md:void 0};return(0,s.jsxs)(n.k,{alignItems:"center",w:{base:"100%",md:"auto"},children:[!!k&&(0,s.jsx)(o.u,{label:"Go previous period",children:(0,s.jsx)(r.h,{display:{base:"none",md:"inherit"},"aria-label":"previous-period",icon:(0,s.jsx)(D.CF5,{fontSize:"12px"}),size:"sm",variant:"text",colorScheme:"neutral",mr:"sm-8",onClick:()=>{if(k.start)var e=m()(k.end).diff(m()(k.start),"days"),a={start:m()(k.start).subtract(e,"days").toDate(),end:m()(k.start).toDate()};else var e=m()().diff(m()(k),"days"),a={start:m()(k).subtract(e,"days").toDate(),end:m()(k).toDate()};t(a),z(a),P([{startDate:a.start,endDate:a.end,key:"selection"}]),I("customDate")}})}),(0,s.jsx)(c.m,{variant:"secondary",size:"sm",index:-1,w:{base:"100%",md:"auto"},children:(0,s.jsxs)(u.t,{position:"relative",bg:{base:"neutral.background-strong"},p:{base:"xs-4"},gap:{base:"xs-4"},borderRadius:{base:"md-12"},w:{base:"100%",md:"auto"},children:[w&&(0,s.jsx)(o.u,{label:"last 1 day",children:(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"1"===S?500:400,bg:"1"===S?A:void 0,onClick:()=>Z("1"),children:"1d"})}),(0,s.jsx)(o.u,{label:"last 7 days",children:(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"7"===S?500:400,bg:"7"===S?A:void 0,onClick:()=>Z("7"),children:"7d"})}),(0,s.jsx)(o.u,{label:"last 30 days",children:(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"30"===S?500:400,bg:"30"===S?A:void 0,onClick:()=>Z("30"),children:"30d"})}),(0,s.jsx)(o.u,{label:"last 90 days",children:(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"90"===S?500:400,bg:"90"===S?A:void 0,onClick:()=>Z("90"),children:"90d"})}),p&&(0,s.jsx)(o.u,{label:"last 180 days",children:(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"180"===S?500:400,bg:"180"===S?A:void 0,onClick:()=>Z("180"),children:"180d"})}),!j&&(0,s.jsx)(x.O,{flex:B,borderRadius:F,fontWeight:"customDate"===S?500:400,bg:"customDate"===S?A:void 0,onClick:()=>O(!0),px:"sm-8",children:(0,s.jsxs)(n.k,{alignItems:"center",children:[(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M12 2.5C13.0938 2.5 14 3.40625 14 4.5V14.5C14 15.625 13.0938 16.5 12 16.5H2C0.875 16.5 0 15.625 0 14.5V4.5C0 3.40625 0.875 2.5 2 2.5H3.25V1.25C3.25 0.84375 3.5625 0.5 4 0.5C4.40625 0.5 4.75 0.84375 4.75 1.25V2.5H9.25V1.25C9.25 0.84375 9.625 0.5 10 0.5C10.4062 0.5 10.75 0.84375 10.75 1.25V2.5H12ZM12 15C12.25 15 12.5 14.7812 12.5 14.5V6.5H1.5V14.5C1.5 14.7812 1.71875 15 2 15H12Z",fill:"currentColor"})}),"customDate"===S&&_?(0,s.jsxs)(b.x,{ml:"1",display:{base:"none",md:"inline"},children:[m()(_.start).format("ll")," -"," ",m()(_.end).format("ll")]}):null,(0,s.jsx)(v.x,{ml:1,mr:1.5,display:"customDate"===S&&_?{base:"block",md:"none"}:"block",children:(0,s.jsx)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M9.51562 6.28906L6.53906 9.28906C6.375 9.42969 6.1875 9.5 6 9.5C5.78906 9.5 5.60156 9.42969 5.46094 9.28906L2.48438 6.28906C2.25 6.07812 2.17969 5.75 2.29688 5.46875C2.41406 5.1875 2.69531 5 3 5H8.97656C9.28125 5 9.53906 5.1875 9.65625 5.46875C9.77344 5.75 9.72656 6.07812 9.51562 6.28906Z",fill:"currentColor"})})})]})}),C&&(0,s.jsxs)(v.x,{ref:V,position:"absolute",top:"100%",right:"0",mt:"xs-4",border:"1px solid",textAlign:"end",borderColor:"neutral.background",borderRadius:"md-12",backgroundColor:"neutral.background-subdued",boxShadow:"medium",zIndex:"1",children:[(0,s.jsx)(h.C0,{className:"datePicker",ranges:T,onChange:e=>P([e.selection]),maxDate:new Date,minDate:E,showDateDisplay:!1}),(0,s.jsx)(f.z,{mr:"2.5",mb:"2.5",mt:"2",variant:"primary",size:"sm",onClick:()=>Z("customDate"),children:"Apply"})]})]})})]})}},97037:function(e,t,a){a.d(t,{c:function(){return O}});var s=a(85893),i=a(67294),l=a(48633),d=a(68029),n=a(88329),o=a(90092),r=a(12519),c=a(5490),u=a(34614),x=a(56978),b=a(57391),v=a(21360),f=a(70010),h=a(74931),w=a(85551),m=a(18041),g=a(23294),y=a(8482),D=a(95857),p=a(29992),j=a(67142),k=a(92676),C=a(19464);function O(e){var t,a,O,S,I,_,z;let{value:E,asModal:L,showThreads:T}=e,[P,R]=(0,i.useState)([]),[W,V]=(0,i.useState)(!1),[H,Z]=(0,i.useState)([]),A=(0,i.useRef)(),[B]=(0,l.kP)(),F=(0,p.I)(),G=(0,k.F)();(0,i.useEffect)(()=>
1{if(B&&F){var e,t;let a=null!==(t=null===(e=(0,D.D0)(B))||void 0===e?void 0:e.tweetLabels)&&void 0!==t?t:[];R([...a])}},[B,F,G.refreshLabels]),(0,w.t$)(A,async()=>{await new Promise(e=>setTimeout(e,200)),V(!1)}),(0,i.useEffect)(()=>{var e,t;Z(null!==(t=null===(e=E.tweet)||void 0===e?void 0:e.labels)&&void 0!==t?t:[])},[]);let M=(0,i.useMemo)(()=>{var e,t,a,s,i,l,d,n,o;let r=E.tweet;return(null===(a=E.tweet)||void 0===a?void 0:null===(t=a.tweetDetails)||void 0===t?void 0:null===(e=t.threadTweets)||void 0===e?void 0:e.length)===0&&(null===(l=E.tweet)||void 0===l?void 0:null===(i=l.tweetDetails)||void 0===i?void 0:null===(s=i.text)||void 0===s?void 0:s.includes("\n\n\n"))&&(E.tweet.tweetDetails.threadTweets=null===(o=E.tweet)||void 0===o?void 0:null===(n=o.tweetDetails)||void 0===n?void 0:null===(d=n.text)||void 0===d?void 0:d.split("\n\n\n")),r},[E.tweet]),N=async(e,t)=>{var a,s,i,l,d,n,o;try{if(!F)return;Z(e),E.tweet.labels&&(E.tweet.labels=e),t&&t();let n=j.GX.firestore();await n.collection("users").doc(null===(a=(0,D.D0)(B))||void 0===a?void 0:a.id).collection("accounts").doc(null===(s=(0,D.D0)(B))||void 0===s?void 0:s.idAccount).collection("tweetsStats").doc(null===(i=E.tweet)||void 0===i?void 0:i.id_str).update({labels:e});let o=await n.collection("users").doc(null===(l=(0,D.D0)(B))||void 0===l?void 0:l.id).collection("tweets").where("id_str","==",E.tweet.id_str).get();
1if(!o.empty){let t=o.docs[0].data();await n.collection("users").doc(null===(d=(0,D.D0)(B))||void 0===d?void 0:d.id).collection("tweets").doc(t.id).update({labels:e})}}catch(e){console.log("Error in updating stat: ",e),h.default.error("Error in updating stat: "+e.message),Z(null!==(o=null===(n=E.tweet)||void 0===n?void 0:n.labels)&&void 0!==o?o:[])}};return(0,s.jsx)(d.x,{children:(0,s.jsxs)(n.k,{alignItems:"center",justifyContent:"space-between",position:"relative",children:[(0,s.jsxs)(n.k,{alignItems:"center",flexDirection:"row",children:[(0,s.jsx)(o.x,{w:"52",mr:"2",minW:"200px",maxW:"220px",textAlign:"start",noOfLines:1,wordBreak:"break-all",textStyle:"body.medium",color:"neutral.content",children:E.text}),(0,s.jsx)(d.x,{maxW:"250px",width:"100%",children:(0,s.jsx)(y.y,{size:"xs",maxLabelsToDisplay:1,showOnlySelectedLabels:!0,showSelectedLabelsOnSearch:!0,mainContainerProps:{justify:"flex-start",mt:"1"},selectedLabelIds:H,showSelectedLabelItems:!1,onChange:N})})]}),(0,s.jsx)(r.h,{variant:"text",colorScheme:"neutral",ml:"-1","aria-label":"Preview",background:"none",size:"sm",onClick:()=>{V(!0)},icon:(0,s.jsx)(C.O,{width:12,height:12})}),W&&(L?(0,s.jsxs)(c.u_,{isOpen:W,onClose:()=>{V(!1)},children:[(0,s.jsx)(u.Z,{}),(0,s.jsxs)(x.h,{children:[(0,s.jsx)(b.x,{children:"Your Tweet"}),(0,s.jsx)(v.o,{}),(0,s.jsxs)(f.f,{children:[(0,s.jsx)(g.Z,{tweet:{data:M}}),T&&(null==M?void 0:null===(a=M.tweetDetails)||void 0===a?void 0:null===(t=a.threadTweets)||void 0===t?void 0:t.length)>1&&(0,s.jsx)(d.x,{display:"flex",justifyContent:"center",children:(0,s.jsx)(m.Z,{threadTweets:null==M?void 0:null===(O=M.tweetDetails)||void 0===O?void 0:O.threadTweets.slice(1),disableNbChar:!0,tweet:null==M?void 0:M.tweetDetails,showOutline:!0,disablePreview:null==M?void 0:null===(S=M.tweetDetails)||void 0===S?void 0:S.isPreventLinkExpand,image:null!==(z=null==M?void 0:null===(I=M.tweetDetails)||void 0===I?void 0:I.image)&&void 0!==z?z:null==M?void 0:null===(_=M.tweetDetails)||void 0===_?void 0:_.profilePic,showGenerateImage:!1})})]})]})]}):(0,s.jsx)(d.x,{position:"absolute",top:"40px",right:"0",minW:"315px",bg:"neutral.background-subdued",boxShadow:"rgba(100, 100, 111, 0.15) 0px 2px 19px 0px",rounded:"md",zIndex:"1",ref:A,fontSize:"md",textAlign:"start",children:(0,s.jsx)(g.Z,{tweet:{data:E.tweet}})}))]})})}}}]);

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.