PageSourceSearch

https://ailikeme.ai/static/7080.858b2aa998747f510c28.js

js ailikeme.ai collected 2026-10-05 15:30:22 UTC 4,433 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[7080],{27080(e,t,n){n.r(t);var a=n(39471),r=n(86287),i=n(63255),l=n(34646),o=n(49482),c=n(93267),s=n(61458),d=n(58908),u=n(58480),y=n(51794);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,l,o=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(o.push(a.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const g=u.A.Title,v=u.A.Text;n.d(t,["default",0,e=>{let t=e.visible,n=e.onClose;const u=m((0,a.useState)([]),2),h=u[0],f=u[1],b=m((0,a.useState)([]),2),p=b[0],w=b[1],A=m((0,a.useState)(!1),2),S=A[0],k=A[1],E=m((0,a.useState)(!1),2),_=E[0],C=E[1],I=m((0,a.useState)({total:0,invited:0,uninvited:0}),2),x=I[0],T=I[1];(0,a.useEffect)(()=>{t&&P()},[t]);const P=async()=>{k(!0);try{const e=await y.tY.GetPrelaunchSubscribers();200===e.status&&(f(e.data.subscribers),T({total:e.data.total,invited:e.data.invited,uninvited:e.data.uninvited}))}catch(e){l.Ay.error("Failed to fetch prelaunch subscribers"),console.error("Error fetching subscribers:",e)}finally{k(!1)}},j=[{title:a.createElement(i.A,{onChange:e=>{e.target.checked?w(h.map(e=>e.id)):w([])},checked:p.length===h.length&&h.length>0,indeterminate:p.length>0&&p.length<h.length}),key:"checkbox",width:50,render:(e,t)=>a.createElement(i.A,{checked:p.includes(t.id),onChange:()=>{return e=t.id,void w(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]);var e}})},{title:"Email",dataIndex:"email",key:"email",sorter:(e,t)=>e.email.localeCompare(t.email)},{title:"Status",dataIndex:"invitation_status",key:"invitation_status",width:120,render:e=>a.createElement(d.A,{color:e?"green":"orange"},e?"Invited":"Pending"),filters:[{text:"Invited",value:!0},{text:"Pending",value:!1}],onFilter:(e,t)=>t.invitation_status===e},{title:"Invitations Sent",dataIndex:"invitation_count",key:"invitation_count",width:150,render:e=>a.createElement("span",{style:{fontWeight:e>0?"bold":"normal"}},e),sorter:(e,t)=>e.invitation_count-t.invitation_count},{title:"Subscribed At",dataIndex:"created_at",key:"created_at",width:180,render:e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),sorter:(e,t)=>new Date(e.created_at).getTime()-new Date(t.created_at).getTime()}];return a.createElement(o.A,{title:a.createElement("div",null,a.createElement(g,{level:4,style:{margin:0}},"Prelaunch Subscribers"),a.createElement(c.A,{size:"large",style:{marginTop:10}},a.createElement(v,{type:"secondary"},"Total: ",x.total),a.createElement(v,{type:"success"},"Invited: ",x.invited),a.createElement(v,{type:"warning"},"Pending: ",x.uninvited))),open:t,onCancel:n,width:900,footer:[a.createElement(r.A,{key:"cancel",onClick:n},"Close"),a.createElement(r.A,{key:"send",type:"primary",loading:_,onClick:async()=>{if(0!==p.length){C(!0);try{const e=await y.tY.SendPrelaunchInvitations(p);200===e.status&&(l.Ay.success(e.data.message),e.data.failed>0&&l.Ay.warning("".concat(e.data.failed," email(s) failed to send")),await P(),w([]))}catch(t){var e;l.Ay.error((null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.error)||"Failed to send invitations"),console.error("Error sending invitations:",t)}finally{C(!1)}}else l.Ay.warning("Please select at least one subscriber")},disabled:0===p.length,style:{backgroundColor:"#34B5B1",borderColor:"#34B5B1"}},"Send Invitations (",p.length," selected)")]},a.createElement(s.A,{columns:j,dataSource:h,rowKey:"id",loading:S,pagination:{pageSize:10,showTotal:e=>"Total ".concat(e," subscribers")},scroll:{y:400},size:"small"}))}])}}]);

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.