PageSourceSearch

https://dash.chimoney.io/_next/static/chunks/2199.e2c89670a7eb58be5740.js

js chimoney.io collected 2026-10-01 13:11:17 UTC 7,344 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2199],{59337:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return F}});var r=n(96156),o=n(2784),a=n(52322),i=n(87757),c=n.n(i),s=n(92137),l=n(78719),u=n(65992),d=n(47746),h=n(86120),f=n(16881),p=n(14036),g=n(79312),m="TweetCard",v={root:"".concat(m,"-root"),content:"".concat(m,"-content"),cover:"".concat(m,"-cover"),controls:"".concat(m,"-controls"),playIcon:"".concat(m,"-playIcon")},x=(0,u.ZP)(h.Z)((function(e){var t,n=e.theme;return t={},(0,r.Z)(t,"&.".concat(v.root),{padding:"20px",border:"1px solid #ddd",textAlign:"left"}),(0,r.Z)(t,"& .".concat(v.content),{display:"inline"}),(0,r.Z)(t,"& .".concat(v.cover),{width:"80px",height:"80px",marginRight:"10px",borderRadius:"50%"}),(0,r.Z)(t,"& .".concat(v.controls),{display:"flex",alignItems:"center",paddingLeft:n.spacing(1),paddingBottom:n.spacing(1)}),(0,r.Z)(t,"& .".concat(v.playIcon),{height:38,width:38}),t}));function b(e){var t=e.text,n=e.profileImg,r=e.username,o=e.date;(0,d.Z)();return(0,a.jsxs)(x,{className:v.root,elevation:0,children:[(0,a.jsx)("a",{href:"https://twitter.com/".concat(r),target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(p.Z,{className:v.cover,image:n,title:r})}),(0,a.jsxs)(f.Z,{className:v.content,children:[(0,a.jsx)("a",{href:"https://twitter.com/".concat(r),target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(g.Z,{component:"h5",variant:"h5",children:r})}),(0,a.jsxs)(g.Z,{variant:"subtitle1",children:[t,(0,a.jsx)(g.Z,{color:"textSecondary",variant:"body2",children:o})]})]})]})}var j=n(43965),w=n(41939),y=n(53242),Z=n(30680),k=n(63735),P=n(38677),O=n(90838),S=n(69089),C=n(35936),I=n(290),E=n(75779),_=n(53151);function N(e){return(0,_.Nv)("twitter-search","POST",e)}var D=n(98493),A=n.n(D),L=n(44352);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(e){var t=(0,o.useState)(""),n=t[0],r=t[1],i=(0,o.useState)(1),u=i[0],d=i[1],h=(0,o.useState)([]),f=h[0],p=h[1],m=(0,o.useState)(""),v=m[0],x=m[1],_=(0,o.useState)([]),D=_[0],T=_[1],F=(0,o.useState)(!1),z=F[0],B=F[1],R=(0,o.useState)(!1),H=R[0],M=R[1],U=function(e,t){var n=new Array(t),r=e.length,o=new Array(r);if(t>r)return[];for(;t--;){var a=Math.floor(Math.random()*r);n[t]=e[a in o?o[a]:a],o[a]=--r in o?o[r]:r}return n},q=function(){var e=(0,s.Z)(c().mark((function e(t){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),B(!0),r=f,n===v){e.next=9;break}return e.next=6,N({hashtag:n});case 6:r=e.sent,p(r),x(n);case 9:o=U(r,u),T(o),B(!1);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function G(e,t){var n=new FileReader;n.onloadend=function(){var e=n.result,r=document.createElement("a");r.href=e,r.download=t,r.click()},n.readAsDataURL(e)}var V=function(){var e=(0,s.Z)(c().mark((function e(){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=window.document.querySelector("#winnersPage"),A().toBlob(t).then((function(e){G(e,"".concat(v,"-chimoney.io-contest.png"))}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=D.map((function(e){return e.username})).join("\n");return(0,a.jsxs)(l.Z,{bg:e.bg,textColor:e.textColor,size:e.size,bgImage:e.bgImage,bgImageOpacity:e.bgImageOpacity,style:{minHeight:"76vh"},children:[(0,a.jsxs)(w.Z,{maxWidth:"sm",children:[(0,a.jsx)(j.Z,{title:e.title,subtitle:e.subtitle,size:2,spaced:!0,className:"text-center"}),(0,a.jsxs)("form",{onSubmit:q,children:[(0,a.jsx)(y.Z,{id:"hashtag",label:"Contest Hashtag",type:"text",fullWidth:!0,onChange:function(e){return r(e.target.value.replace("#",""))},value:n,InputProps:{startAdornment:(0,a.jsx)(Z.Z,{position:"start",children:"#"})},InputLabelProps:{shrink:!0},variant:"outlined"}),(0,a.jsx)(y.Z,{margin:"dense",id:"numberWinners",label:"Number of winners to pick",type:"number",fullWidth:!0,onChange:function(e){return d(e.target.value)},value:u,InputProps:{startAdornment:(0,a.jsx)(Z.Z,{position:"start"})},InputLabelProps:{shrink:!0},variant:"outlined"}),(0,a.jsxs)(k.ZP,{align:"center",children:[(0,a.jsx)("br",{}),(0,a.jsx)(P.Z,{variant:"contained",color:"primary",onClick:q,type:"submit",disabled:z,size:"large",children:v?"Pick again":"Pick winner"}),z&&(0,a.jsx)(O.Z,{size:50,style:{position:"absolute",top:"50%",left:"50%",marginTop:-12,marginLeft:-12}}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})]})]}),D.length>0?(0,a.jsxs)(w.Z,{maxWidth:"md",style:{border:"5px solid #94FF47",padding:"10px",marginBottom:"20px"},align:"center",children:[(0,a.jsxs)("div",{id:"winnersPage",style:{padding:"10px"},children:[(0,a.jsxs)(g.Z,{align:"center",variant:"h5",children:["#",v," contest \ud83c\udfc6\ud83c\udf96\ufe0f"]}),(0,a.jsx)("br",{}),D.map((function(e,t){return(0,o.createElement)(b,W(W({},e),{},{key:t}))})),(0,a.jsx)("br",{}),(0,a.jsx)(g.Z,{align:"center",variant:"body1",children:"www.chimoney.io for contests & giveaways"})]}),(0,a.jsx)(P.Z,{variant:"outlined",color:"primary",onClick:V,children:"Download Screenshot"}),"  ",(0,a.jsx)(P.Z,{variant:"contained",color:"primary",onClick:function(){return M(!0)},children:"Send reward"})]}):"",(0,a.jsxs)(w.Z,{maxWidth:"md",children:[f.map((function(e,t){return(0,o.createElement)(b,W(W({},e),{},{key:t}))})),v&&f.length<1?(0,a.jsx)(g.Z,{color:"error",align:"center",variant:"h6",children:"No recent tweet found"}):""]}),(0,a.jsxs)(S.Z,{open:H,onClose:function(){return M(!1)},"aria-labelledby":"form-dialog-title",fullWidth:!0,children:[(0,a.jsx)(C.Z,{id:"form-dialog-title",children:"Reward with Chimoney"}),(0,a.jsxs)(I.Z,{children:[(0,a.jsx)(E.Z,{}),(0,a.jsx)(L.Z,{fixedTwitterUsernames:X,hashtag:n})]})]})]})}},81474:function(e,t,n){"use strict";n.d(t,{V:function(){return d}});var r=n(2784),o=n(34406),a=parseInt(o.env.NEXT_PUBLIC_FLAGS_CACHE_TTL_MS||"60000",10),i=null,c=0,s=null,l=function(){return Boolean(i)&&Date.now()-c<a},u=function(){return l()?Promise.resolve(i):(i&&!l()&&(i=null,c=0,s=null),s||(s=fetch("/api/flags").then((function(e){if(!e.ok)throw new Error("Flags fetch failed: ".concat(e.status));return e.json()})).then((function(e){if(null===e||void 0===e||!e.flags)throw new Error((null===e||void 0===e?void 0:e.error)||"Invalid flags response");return i=e,c=Date.now(),e})).catch((function(e){throw s=null,e}))),s)},d=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,r.useState)(l()?i:null),n=t[0],o=t[1],a=(0,r.useState)(e&&!l()),c=a[0],s=a[1],d=(0,r.useState)(""),h=d[0],f=d[1];return(0,r.useEffect)((function(){if(e)return l()?(o(i),f(i.error),void s(!1)):void u().then((function(e){f(e.error),o(e),s(!1)})).catch((function(e){f((null===e||void 0===e?void 0:e.message)||"Failed to fetch flags"),s(!1)}));s(!1)}),[e]),{flags:null===n||void 0===n?void 0:n.flags,loading:c,error:h}}}}]);

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.