PageSourceSearch

https://findtwitterspace.netlify.app/static/js/main.cea85f63.chunk.js

js findtwitterspace.netlify.app collected 2026-10-03 10:44:13 UTC 8,141 bytes, 2 lines download raw bytes

1(this["webpackJsonpfind-twitter-spaces"]=this["webpackJsonpfind-twitter-spaces"]||[]).push([[0],{109:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(12),c=n.n(i),o=n(151),l=Object(o.a)((function(){return{root:{margin:"5px 20px"}}})),s=n(154),u=n(156),d=n(77),h=n.n(d),p=n(76),b=n.n(p),j=Object(o.a)((function(){return{root:{margin:"2px",marginTop:"5px",marginBottom:"120px",fontFamily:"UI-MONOSPACE"}}})),f=n(5),v=function(){var e=j().root;return Object(f.jsx)(s.a,{container:!0,spacing:2,className:e,children:Object(f.jsxs)(s.a,{container:!0,spacing:3,justifyContent:"flex-end",children:[Object(f.jsx)(s.a,{item:!0,children:Object(f.jsx)(u.a,{href:"https://twitter.com/atbrakhi",target:"_blank",children:Object(f.jsx)(b.a,{fontSize:"large",htmlColor:"black"})})}),Object(f.jsx)(s.a,{item:!0,children:Object(f.jsx)(u.a,{href:"https://github.com/Rakhisharma/find-twitter-space",target:"_blank",children:Object(f.jsx)(h.a,{fontSize:"large",htmlColor:"black"})})})]})})},m=n(22),x=n(65),O=n(66),g=n.n(O),y=n(79),w=n(29),S=n(82),C=n(85),P=n(157),k=n(158),I=n(160),M=n(159),T=n(164),_=function(e){var t=e.label,n=e.onChange,r=e.onBlur,a=e.placeholder,i=e.variant,c=e.fullWidth,o=e.isMultiline,l=e.inputProps,s=e.InputProps,u=e.InputLabelProps,d=e.SelectProps,h=e.onKeyPress,p=e.type,b=e.inputRef,j=e.children,v=e.select,m=e.isEnabled,x=e.value,O=e.helperText,g=e.onMouseDown,y=e.error,w=e.classes,S=e.rows,C=e.rowsMax;return Object(f.jsx)(T.a,{"aria-disabled":!m,label:t,value:x,type:p,placeholder:a,onBlur:r,select:v,variant:i,fullWidth:c,multiline:o,inputRef:b,InputProps:s,inputProps:l,InputLabelProps:u,onChange:function(e){var t=e.target;n(t.value)},SelectProps:d,onKeyPress:h,onMouseDown:g,disabled:!m,helperText:O,error:y,classes:w,rows:S,rowsMax:C,children:j})};_.defaultProps={value:"",onChange:function(){},variant:"filled",isEnabled:!0};var E=_,B=Object(o.a)((function(){return{searchButton:{backgroundColor:"rgb(29, 155, 240)",color:"white","&:hover":{backgroundColor:"rgb(29, 155, 240)"}}}})),N=function(e){var t=e.value,n=e.onSubmit,r=e.placeholder,a=e.fullWidth,i=e.onCh
1ange,c=(e.isEnabled,e.children),o=B().searchButton;return Object(f.jsx)(s.a,{container:!0,spacing:1,children:Object(f.jsx)(s.a,{item:!0,xs:12,children:Object(f.jsxs)(s.a,{container:!0,spacing:2,alignItems:"center",children:[Object(f.jsx)(s.a,{item:!0,xs:!0,children:Object(f.jsx)(E,{fullWidth:a,variant:"outlined",placeholder:r,value:t,onChange:function(e){return i(e)},onKeyPress:function(e){return"Enter"===e.key&&n()},InputProps:{startAdornment:Object(f.jsx)(P.a,{position:"start",children:Object(f.jsx)(k.a,{children:Object(f.jsx)(M.a,{color:"action"})})})}})}),c&&Object(f.jsx)(s.a,{item:!0,xs:2,children:c}),Object(f.jsx)(s.a,{item:!0,children:Object(f.jsx)(I.a,{variant:"contained",className:o,size:"large",onClick:function(){return n()},children:"Search"})})]})})})};N.defaultProps={value:"",placeholder:"Search",isEnabled:!0,onSubmit:function(){},onChange:function(){}};var A=N,W=n(169),z=Object(o.a)((function(e){var t=e.spacing;return{input:function(e){var n=e.isMinimized;return{paddingTop:n?t(1):void 0,paddingBottom:n?t(1):void 0}},label:{whiteSpace:"nowrap"}}})),F=function(e){var t=e.value,n=e.items,r=e.onChange,a=e.label,i=e.isMinimized,c=e.onBlur,o=e.error,l=e.helperText,s=e.variant,u=e.isEnabled,d=z({isMinimized:i}),h=d.input,p=d.label;return Object(f.jsx)(E,{select:!0,fullWidth:!0,label:a,variant:s,isEnabled:u,value:Array.isArray(t)?t:t&&t.id,error:o,helperText:l,onBlur:c,onChange:function(e){var t=function(e){var t=n.find((function(t){return t.id===e}));return Array.isArray(e)?e:t}(e);t&&r(t)},InputLabelProps:{classes:{root:p}},InputProps:{classes:{input:h}},SelectProps:{multiple:Array.isArray(t)},children:n.map((function(e){var t=e.id,n=e.value;return Object(f.jsx)(W.a,{value:t,children:n},"item-".concat(t))}))})};F.defaultProps={items:[],variant:"filled",isMinimized:!1,isEnabled:!0,onChange:function(){},onBlur:function(){},error:!1};var L=F,R=n(166),Y=n(165),D=n(171),H=n(172),K=n(168),J=n(83),U=n.n(J),q=function(e){if(!e)return"Not scheduled yet";var t=new Date(e),n=U()(t).utc().format("YYYY MMM ddd  HH:mm");return"".concat(n," UTC")},G=function(e){var t,n,r=e.data;return Object(f.jsxs)(R.a,{sx:{display:"flex"},children:[Object(f.jsx)(Y.a,{href:"https://twitter.com//".concat(r.userName),target:"_blank",underline:"none",children:Object(f.jsx)(D.a,{component:"img",sx:{width:151},image:(n=r.profileImage,n?n.toString().replace(/normal/g,"400x400"):"https://abs.twimg.com/sticky/default_profile_images/default_profile_400x400.png"),alt:"profile picture"})}),Object(f.jsxs)(H.a,{children:[Object(f.jsx)(K.a,{component:"div",variant:"body1",color:"text.primary",children:r.title}),Object(f.jsx)(K.a,{variant:"subtitle2",color:"text.secondary",component:"div",children:q(r.scheduledStart)}),Object(f.jsx)(Y.a,{href:(t=r.id,"https://twitter.com/i/spaces/".concat(t)),underline:"none",children:"Link to space"})]})]})},Q=function(e){return fetch("/.netlify/functions/node-fetch",{headers:{search:e||"Tech"}}).then((function(e){return e.json()})).then((function(e){return function(e){var t=e.data,n=e.includes;return{data:null===t||void 0===t?void 0:t.map((function(e){return{state:(t=e).state,lang:t.lang,id:t.id,title:t.title,creatorId:t.creator_id,scheduledStart:t.scheduled_start,hostIds:t.host_ids,speakerIds:t.speaker_ids};var t})),includes:null===n||void 0===n?void 0:n.users.map((function(e){return{userId:(t=e).id,name:t.name,userName:t.username,profileImage:t.profile_image_url};var t}))}}(e.data)}))},V=Object(o.a)((function(){return{root:{padding:"40px"},titleText:{backgroundColor:"rgb(29, 155, 240)"}}})),X={id:"category",value:"Select Category"},Z=[{id:"nft",value:"NFT"},{id:"tech",value:"Tech"},{id:"web",value:"Web"},{id:"rust",value:"Rust"},{id:"web3",value:"Web3"},{id:"crypto",value:"Crypto"},{id:"bitcoin",value:"Bitcoin"},{id:"ethereum",value:"Ethereum"},{id:"world",value:"World"},{id:"health",value:"Health"},{id:"coding",value:"Coding"},{id:"programming",value:"Programming"},{id:"politics",value:"Politics"}],$=function(){var e=V(),t=e.root,n=e.titleText,a=Object(r.useState)(!1),i=Object(w.a)(a,2),c=i[0],o=i[1],l=Object(r.useState)(),u=Object(w.a)(l,2),d=u[0],h=u[1],p=Object(r.useState)(""),b=Object(w.a)(p,2),j=b[0],v=b[1],O=Object(r.useState)(X),P=Object(w.a)(O,2),k=P[0],I=P[1];Object(S.useAsyncEffect)(function(){var e=Object(y.a)(g.a.mark((function e(t){var n,r;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),n=function(){return""===j&&k===X?"":""!==j&&k===X?(I(X),j):""===j&&k!==X?(v(""),k.value):""}(),e.next=5,Q(n);case 5:if(r=e.sent,t()){e.next=8;break}return e.abrupt("return");case 8:h(r),o(!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[j,k]);var M=null===d||void 0===d?void 0:d.data,T=null===d||void 0===d?void 0:d.includes,_=function(){if(T||M)return M.map((function(e){return Object(x.a)(Object(x.a)({},T.find((function(t){return t.userId===e.creatorId&&t}))),e)}))};return Object(f.jsxs)(s.a,{container:!0,spacing:4,className:t,children:[Object(f.jsx)(s.a,{item:!0,children:Object(f.jsx)(C.a,{variant:"h2",className:n,children:Object(f.jsx)("strong",{children:"Search for Twitter Spaces "})})}),Object(f.jsx)(s.a,{item:!0,xs:12,children:Object(f.jsx)(A,{fullWidth:!0,placeholder:"Search For Twitter Spaces",value:j,onChange:function(e){I(X),v(e)},onSubmit:function(){I(X),v(j)},children:Object(f.jsx)(L,{label:"Filter Spaces Category",items:[X].concat(Object(m.a)(Z)),value:k,variant:"outlined",onChange:function(e){var t=e;v(""),I(t)}})})}),_()?_().map((function(e,t){return Object(f.jsx)(s.a,{item:!0,xs:4,children:Object(f.jsx)(G,{data:e})},t)})):!c&&Object(f.jsx)(s.a,{item:!0,xs:4,children:Object(f.jsx)(C.a,{variant:"subtitle2",component:"div",children:"No result Found"})})]})},ee=function(){var e=l().root;return Object(f.jsxs)("div",{className:e,children:[Object(f.jsx)(v,{}),Object(f.jsx)($,{})]})};c.a.render(Object(f.jsx)(a.a.StrictMode,{children:Object(f.jsx)(ee,{})}),document.getElementById("root"))}},[[109,1,2]]]);
2//# sourceMappingURL=main.cea85f63.chunk.js.map

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.